is_ISO8601_time: Determine if a string is an ISO 8601 time

View source: R/iso8601_regexp.R

is_ISO8601_timeR Documentation

Determine if a string is an ISO 8601 time

Description

Determine if a string is an ISO 8601 time

Usage

is_ISO8601_time(x, ...)

Arguments

x

A vector of character strings to test

...

Arguments passed on to pattern_ISO8601_time

truncated

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

Not yet supported

allow_fractional_seconds

Should fractional seconds be allowed?

fractional_digits

How many digits are allowed in fractional time units? 0 indicates that they are not allowed, and Inf indicates any number are allowed)

pattern_decimal_mark

What regular expression patterns should be allowed for the decimal mark? Comma and period are both allowed in the standard and by default.

timezone

Should the timezone be optional (NA, default), required (TRUE), or omitted (FALSE)?

allow_leap_second

Should leap seconds (61 seconds in a minute) be allowed?

require_T

Require the "T" at the beginning of the time? TRUE, FALSE, or NA (optional)

See Also

Other ISO8601 String checking: is_ISO8601_calendar_datetime(), is_ISO8601_calendar_date(), is_ISO8601_ordinal_datetime(), is_ISO8601_timezone(), is_ISO8601_week_datetime()

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_week_datetime(), make_dy(), pattern_ISO8601_any_datetime(), pattern_ISO8601_any_date(), pattern_ISO8601_calendar_datetime(), pattern_ISO8601_calendar_date(), 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.