SparkR (version 2.1.2)

to_utc_timestamp: to_utc_timestamp

Description

Given a timestamp, which corresponds to a certain time of day in the given timezone, returns another timestamp that corresponds to the same time of day in UTC.

Usage

to_utc_timestamp(y, x)

# S4 method for Column,character to_utc_timestamp(y, x)

Arguments

y

Column to compute on

x

timezone to use

See Also

Other datetime_funcs: add_months, date_add, date_format, date_sub, datediff, dayofmonth, dayofyear, from_unixtime, from_utc_timestamp, hour, last_day, minute, months_between, month, next_day, quarter, second, to_date, unix_timestamp, weekofyear, window, year

Examples

Run this code
# NOT RUN {
to_utc_timestamp(df$t, 'PST')
# }

Run the code above in your browser using DataLab