Description Usage Arguments See Also Examples
Date and time values output from iFormBuilder can be difficult
to work with. The output will typically look like:
"2014-11-13T15:04:00+00.00"
. The idate_time()
function
converts datetime outputs to standard format "2014-10-13 08:04:03"
taking timezone into consideration.
1 | idate_time(dts, timezone = "America/Los_Angeles")
|
dts |
A vector of datetimes as string values |
timezone |
A character string in standard format specifying timezone.
Use |
Sys.timezone
for timezones
1 2 3 4 5 6 | # Create vector that straddles change in daylight savings time
# Daylight savings time occurred: 2017-03-12 02:00:00
dts = c("2017-03-12T01:10:00+00:00", "", NA, "2017-03-12T02:10:00+00:00")
# Convert to standard format
idate_time(dts)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.