format_iso8601()
takes a character matrix of date/time components and
converts each component to ISO8601 format. In practice this entails
converting years to a four digit number, and month, day, hours, minutes and
seconds to two-digit numbers. Not available (NA
) components are converted
to "-"
.
format_iso8601(m, .cutoff_2000 = 68L)
A character vector with date-times following the ISO8601 format.
A character matrix of date/time components. It must have six
named columns: year
, mon
, mday
, hour
, min
and sec
.
An integer value. Two-digit years smaller or equal to
.cutoff_2000
are parsed as though starting with 20
, otherwise parsed as
though starting with 19
.