Description Usage Arguments Value Examples
View source: R/time_dimensions.R
Finds the UTC offset in a date-time or time axis specification string such as 'hours since 2015-10-04 00:00:00 +1030'
1 | 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.
1 2 3 4 5 6 7 8 9 | 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.