Determine if a string is an ISO 8601 time
is_ISO8601_time.RdDetermine if a string is an ISO 8601 time
Arguments
- x
A vector of character strings to test
- ...
Arguments passed on to
pattern_ISO8601_timetruncatedShould the date be allowed to be truncated? An integer indicating the highest required precision (0=second is required, 1=minute, and 2=hour). A value of 3 will allow an empty string to match.
allow_fractional_hours,allow_fractional_minutesNot yet supported
allow_fractional_secondsShould fractional seconds be allowed?
fractional_digitsHow many digits are allowed in fractional time units?
0indicates that they are not allowed, andInfindicates any number are allowed)pattern_decimal_markWhat regular expression patterns should be allowed for the decimal mark? Comma and period are both allowed in the standard and by default.
timezoneShould the timezone be optional (NA, default), required (TRUE), or omitted (FALSE)?
allow_leap_secondShould leap seconds (61 seconds in a minute) be allowed?
require_TRequire the "T" at the beginning of the time? TRUE, FALSE, or NA (optional)
See also
Other ISO8601 String checking:
is_ISO8601_calendar_date(),
is_ISO8601_calendar_datetime(),
is_ISO8601_ordinal_datetime(),
is_ISO8601_timezone(),
is_ISO8601_week_datetime()
Other Date management and conversion:
dateany_to_date(),
generate_dtc(),
is_ISO8601_calendar_date(),
is_ISO8601_calendar_datetime(),
is_ISO8601_ordinal_datetime(),
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()