Determine if a string is an ISO 8601 calendar date
is_ISO8601_calendar_date.RdDetermine if a string is an ISO 8601 calendar date
Arguments
- x
A vector of character strings to test
- ...
Arguments passed on to
pattern_ISO8601_calendar_datetruncatedShould the date be allowed to be truncated? An integer indicating the highest required precision (0=day is required, 1=month, and 2=year). A value of 3 will allow an empty string to match.
allow_before_year_1583Should years between 0 and 1582 be allowed (they are only allowed in ISO 8601 with mutual agreement)
pattern_timeA string to add to the day for including time with date (see
pattern_ISO8601_time())
Functions
is_ISO8601_week_date(): Determine if a string is an ISO 8601 week dateis_ISO8601_ordinal_date(): Determine if a string is an ISO 8601 ordinal date
See also
Other ISO8601 String checking:
is_ISO8601_calendar_datetime(),
is_ISO8601_ordinal_datetime(),
is_ISO8601_time(),
is_ISO8601_timezone(),
is_ISO8601_week_datetime()
Other Date management and conversion:
dateany_to_date(),
generate_dtc(),
is_ISO8601_calendar_datetime(),
is_ISO8601_ordinal_datetime(),
is_ISO8601_time(),
is_ISO8601_timezone(),
is_ISO8601_week_datetime(),
make_dy(),
pattern_ISO8601_any_date(),
pattern_ISO8601_any_datetime(),
pattern_ISO8601_calendar_date(),
pattern_ISO8601_calendar_datetime(),
pattern_ISO8601_calendar_year(),
pattern_ISO8601_ordinal_date(),
pattern_ISO8601_ordinal_datetime(),
pattern_ISO8601_time(),
pattern_ISO8601_timezone(),
pattern_ISO8601_week_date(),
pattern_ISO8601_week_datetime(),
sdtm_dtc_to_datetime(),
sdtm_first_dose(),
sdtm_time_actual()