View source: R/utilSolarTime.R
setLocalTimeZone | R Documentation |
modify tzone attribute of timestamp to 'GMT+x' for local to given longitude
setLocalTimeZone(timestamp, longDeg)
timestamp |
POSIXct |
longDeg |
Longitude in (decimal) degrees |
timestamp
with modified tzone attribute. Its the same time
point expressed in another time zone. E.g. "2019-04-04 00:00:00 UTC"
becomes "2019-04-04 10:00:00 +10" for a longitude of +150 (Sydney, Australia)
Thomas Wutzler
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.