Learn R Programming

shadow (version 0.1.3)

toGMT: Local time to GMT

Description

The function transforms a POSIXct object in any given time zone to GMT.

Usage

toGMT(time)

Arguments

time
Time, a POSIXct object.

Value

A a POSIXct object, in GMT.

Examples

Run this code
time = as.POSIXct("1999-01-01 12:00:00", tz = "Asia/Jerusalem")
toGMT(time)

Run the code above in your browser using DataLab