Last chance! 50% off unlimited learning
Sale ends in
strptime
-style Format StringsA function to convert strptime
/strftime
-style
format strings to ICU format strings that may be used
in stri_datetime_parse
and stri_datetime_format
functions.
stri_datetime_fstr(x)
character vector consisting of date/time format strings
Returns a character vector.
For more details on conversion specifiers please refer to
the manual page of strptime
. Most of the formatters
of the form %x
, where x
is a letter, are supported.
Moreover, each %%
is replaced with %
.
Warnings are given in case of %x
, %X
, %u
, %w
,
%g
, %G
, %c
, %U
and %W
as in such circumstances either ICU does not
support requested functionality using format-strings API
or there are some inconsistencies between base R and ICU.
Other datetime: stri_datetime_add
,
stri_datetime_create
,
stri_datetime_fields
,
stri_datetime_format
,
stri_datetime_now
,
stri_datetime_symbols
,
stri_timezone_get
,
stri_timezone_info
,
stri_timezone_list
# NOT RUN {
stri_datetime_fstr("%Y-%m-%d %H:%M:%S")
# }
Run the code above in your browser using DataLab