View source: R/time_dimensions.R
find_utc_offset | R Documentation |
Finds the UTC offset in a date-time or time axis specification string such as 'hours since 2015-10-04 00:00:00 +1030'
find_utc_offset(time_units, as_string = TRUE)
time_units |
the string to process |
as_string |
a boolean. If true, return the time offset as a character, otherwise return a difftime object. |
the time offset as a character, or as a difftime object.
x <- "hours since 2015-10-04 00:00:00 +1023"
find_utc_offset(x)
find_utc_offset(x, FALSE)
x <- "hours since 2015-10-04 00:00:00 -0837"
find_utc_offset(x)
find_utc_offset(x, FALSE)
x <- "hours since 2015-10-04 00:00:00"
find_utc_offset(x)
find_utc_offset(x, FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.