chronos | R Documentation |
Fast general purpose parser for date(time) from input data
chronos(x, formats = NULL, tz = "", to_tz = "", out_format = "datetime")
x |
A vector with date(time) expressions to be parsed and converted. |
formats |
character vector of formats to try out (see base::strptime). If NULL, uses a set of predefined formats mostly taken from the anytime package. |
tz |
assumed input timezone. If "", uses local timezone. See details |
to_tz |
convert datetime to timezone given in to_tz. If "", tz is used. See details |
out_format |
character. Defining the format of the returned result. Can be "datetime", "date", or "character". |
The internal parsing is done "timezoneless". The timezone given in tz is just added to the datetime without any conversion. If to_tz is given, a conversion is made from tz to to_tz.
A character vector which can be transformed to POSIXct
or date
parse_datetime, parse_date, and parse_epoch if you need more control over formatting
chronos(bench_date)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.