pattern_ISO8601_calendar_date: Generate a regular expression matching an ISO8601 calendar...

View source: R/iso8601_regexp.R

pattern_ISO8601_calendar_dateR Documentation

Generate a regular expression matching an ISO8601 calendar date

Description

Generate a regular expression matching an ISO8601 calendar date

Usage

pattern_ISO8601_calendar_date(
  truncated = 0,
  allow_before_year_1583 = FALSE,
  pattern_time = "",
  ...
)

Arguments

truncated

Should 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_1583

Should years between 0 and 1582 be allowed (they are only allowed in ISO 8601 with mutual agreement)

pattern_time

A string to add to the day for including time with date (see pattern_ISO8601_time())

...

Ignored

Details

This matches the general pattern of YYYY-MM-DD (year-month-day). Basic format (without dashes) is not supported.

References

https://en.wikipedia.org/wiki/ISO_8601

See Also

Other ISO8601 patterns: pattern_ISO8601_any_datetime(), pattern_ISO8601_any_date(), pattern_ISO8601_calendar_datetime(), pattern_ISO8601_calendar_year(), pattern_ISO8601_ordinal_datetime(), pattern_ISO8601_ordinal_date(), pattern_ISO8601_timezone(), pattern_ISO8601_time(), pattern_ISO8601_week_datetime(), pattern_ISO8601_week_date()

Other Date management and conversion: dateany_to_date(), generate_dtc(), is_ISO8601_calendar_datetime(), is_ISO8601_calendar_date(), is_ISO8601_ordinal_datetime(), is_ISO8601_timezone(), is_ISO8601_time(), is_ISO8601_week_datetime(), make_dy(), pattern_ISO8601_any_datetime(), pattern_ISO8601_any_date(), pattern_ISO8601_calendar_datetime(), pattern_ISO8601_calendar_year(), pattern_ISO8601_ordinal_datetime(), pattern_ISO8601_ordinal_date(), pattern_ISO8601_timezone(), pattern_ISO8601_time(), pattern_ISO8601_week_datetime(), pattern_ISO8601_week_date(), sdtm_dtc_to_datetime(), sdtm_first_dose(), sdtm_time_actual()


billdenney/Rsdtm documentation built on Dec. 7, 2022, 2:11 a.m.