View source: R/convert_UTC_to_localtime.R
convert_UTC_to_localtime | R Documentation |
Convert time from UTC to local time, either standard or with daylight
savings. Recommended for post-analysis visualization only; most functions in
streamMetabolizer use times in UTC. If you know the timezone code for your
local site, use with_tz
instead.
convert_UTC_to_localtime(
date.time,
latitude,
longitude,
time.type = c("standard local", "daylight local")
)
date.time |
POSIXct object the date and time in UTC |
latitude |
numeric, in degrees, either positive and unitted ("degN" or "degS") or with sign indicating direction (positive = North) |
longitude |
numeric, in degrees, either positive and unitted ("degE" or "degW") or with sign indicating direction (positive = East) |
time.type |
character. The type of time zone desired - either standard time without any daylight savings time or daylight time where daylight savings is on during the appropriate days |
https://stackoverflow.com/questions/23414340/convert-to-local-time-zone-using-latitude-and-longitude
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.