Functions.MonthsBetween 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| MonthsBetween(Column, Column) |
傳回日期 |
| MonthsBetween(Column, Column, Boolean) |
傳回日期 |
MonthsBetween(Column, Column)
傳回日期 end 與 stasrt 之間的月份數。
public static Microsoft.Spark.Sql.Column MonthsBetween (Microsoft.Spark.Sql.Column end, Microsoft.Spark.Sql.Column start);
static member MonthsBetween : Microsoft.Spark.Sql.Column * Microsoft.Spark.Sql.Column -> Microsoft.Spark.Sql.Column
Public Shared Function MonthsBetween (end As Column, start As Column) As Column
參數
- end
- Column
日期資料行
- start
- Column
日期資料行
傳回
Column 物件
適用於
MonthsBetween(Column, Column, Boolean)
傳回日期 end 與 start 之間的月份數。 如果 roundOff 設定為 true,則結果會四捨五入為 8 位數,否則不會四捨五入。
[Microsoft.Spark.Since("2.4.0")]
public static Microsoft.Spark.Sql.Column MonthsBetween (Microsoft.Spark.Sql.Column end, Microsoft.Spark.Sql.Column start, bool roundOff);
[<Microsoft.Spark.Since("2.4.0")>]
static member MonthsBetween : Microsoft.Spark.Sql.Column * Microsoft.Spark.Sql.Column * bool -> Microsoft.Spark.Sql.Column
Public Shared Function MonthsBetween (end As Column, start As Column, roundOff As Boolean) As Column
參數
- end
- Column
日期資料行
- start
- Column
日期資料行
- roundOff
- Boolean
四捨五入或未舍入
傳回
Column 物件
- 屬性