transform_datetime_format {csvwr} | R Documentation |
Transform date/time format string from Unicode TR35 to POSIX 1003.1
Description
As per the csvw specification for date and time formats
we accept format strings using the date field symbols defined in unicode TR35.
These are converted to POSIX 1003.1 date format strings for use in
base::strptime()
or readr::parse_date()
/readr::parse_datetime()
.
Usage
transform_datetime_format(format_string)
Arguments
format_string |
a UAX35 date format string |
Value
a POSIX date format string
Examples
## Not run:
fmt <- transform_datetime_format("dd.MM.yyyy")
strptime("01.01.2001", format=fmt)
## End(Not run)
[Package csvwr version 0.1.7 Index]