Learn R Programming

utc (version 0.1.5)

fromUTC: fromUTC

Description

Returns local time from UTC time

Usage

fromUTC(utctime, timeformat = "%Y-%m-%d %H:%M:%S")

Arguments

utctime

POSIXct UTC time

timeformat

string format of local time, by default it will be "%Y-%m-%d %H:%M:%S"

Value

localtime POSIXct local time

Examples

Run this code
# NOT RUN {
 fromUTC( as.POSIXct("1991-06-29 05:27:25", tz = "UTC") )

# }

Run the code above in your browser using DataLab