Skip to contents

Generate a regular expression matching an ISO8601 calendar date with time

Usage

pattern_ISO8601_calendar_datetime(truncated = 0, ...)

Arguments

truncated

Should the date/time be allowed to be truncated? An integer indicating the highest required precision (0=second is required, 1=minute, 2=hour, 3=day, 4=month, 5=year, 6=none). A value of 6 will allow an empty string to match.

...

Passed to pattern_ISO8601_calendar_date() and pattern_ISO8601_time()