Functions.ToTimestamp Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ToTimestamp(Column) |
Convert time string to a Unix timestamp (in seconds) by casting rules to
|
ToTimestamp(Column, String) |
Convert time string to a Unix timestamp (in seconds) with specified format. |
ToTimestamp(Column)
Convert time string to a Unix timestamp (in seconds) by casting rules to
TimestampType
.
public static Microsoft.Spark.Sql.Column ToTimestamp(Microsoft.Spark.Sql.Column column);
static member ToTimestamp : Microsoft.Spark.Sql.Column -> Microsoft.Spark.Sql.Column
Public Shared Function ToTimestamp (column As Column) As Column
Parameters
- column
- Column
Column to apply
Returns
Column object
Applies to
ToTimestamp(Column, String)
Convert time string to a Unix timestamp (in seconds) with specified format.
public static Microsoft.Spark.Sql.Column ToTimestamp(Microsoft.Spark.Sql.Column column, string format);
static member ToTimestamp : Microsoft.Spark.Sql.Column * string -> Microsoft.Spark.Sql.Column
Public Shared Function ToTimestamp (column As Column, format As String) As Column
Parameters
- column
- Column
Column to apply
- format
- String
Date format
Returns
Column object
Remarks
Supported date format can be found: http://docs.oracle.com/javase/tutorial/i18n/format/simpleDateFormat.html