Share via


Functions.ToUtcTimestamp Method

Definition

Overloads

ToUtcTimestamp(Column, Column)

Given a timestamp like '2017-07-14 02:40:00.0', interprets it as a time in the given time zone, and renders that time as a timestamp in UTC. For example, 'GMT+1' would yield '2017-07-14 01:40:00.0'.

ToUtcTimestamp(Column, String)

Given a timestamp like '2017-07-14 02:40:00.0', interprets it as a time in the given time zone, and renders that time as a timestamp in UTC. For example, 'GMT+1' would yield '2017-07-14 01:40:00.0'.

ToUtcTimestamp(Column, Column)

Given a timestamp like '2017-07-14 02:40:00.0', interprets it as a time in the given time zone, and renders that time as a timestamp in UTC. For example, 'GMT+1' would yield '2017-07-14 01:40:00.0'.

[Microsoft.Spark.Deprecated("3.0.0")]
[Microsoft.Spark.Since("2.4.0")]
public static Microsoft.Spark.Sql.Column ToUtcTimestamp (Microsoft.Spark.Sql.Column column, Microsoft.Spark.Sql.Column tz);
[<Microsoft.Spark.Deprecated("3.0.0")>]
[<Microsoft.Spark.Since("2.4.0")>]
static member ToUtcTimestamp : Microsoft.Spark.Sql.Column * Microsoft.Spark.Sql.Column -> Microsoft.Spark.Sql.Column
Public Shared Function ToUtcTimestamp (column As Column, tz As Column) As Column

Parameters

column
Column

Column to apply

tz
Column

Timezone expression

Returns

Column object

Attributes

Remarks

This API is deprecated in Spark 3.0.

Applies to

ToUtcTimestamp(Column, String)

Given a timestamp like '2017-07-14 02:40:00.0', interprets it as a time in the given time zone, and renders that time as a timestamp in UTC. For example, 'GMT+1' would yield '2017-07-14 01:40:00.0'.

[Microsoft.Spark.Deprecated("3.0.0")]
public static Microsoft.Spark.Sql.Column ToUtcTimestamp (Microsoft.Spark.Sql.Column column, string tz);
[<Microsoft.Spark.Deprecated("3.0.0")>]
static member ToUtcTimestamp : Microsoft.Spark.Sql.Column * string -> Microsoft.Spark.Sql.Column
Public Shared Function ToUtcTimestamp (column As Column, tz As String) As Column

Parameters

column
Column

Column to apply

tz
String

Timezone string

Returns

Column object

Attributes

Remarks

This API is deprecated in Spark 3.0.

Applies to