Functions.MonthsBetween 方法

定義

多載

MonthsBetween(Column, Column)

傳回日期 endstasrt 之間的月份數。

MonthsBetween(Column, Column, Boolean)

傳回日期 endstart 之間的月份數。 如果 roundOff 設定為 true,則結果會四捨五入為 8 位數,否則不會四捨五入。

MonthsBetween(Column, Column)

傳回日期 endstasrt 之間的月份數。

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)

傳回日期 endstart 之間的月份數。 如果 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 物件

屬性

適用於