Skip to contents

Generate a regular expression matching any ISO8601 date format with time

Usage

pattern_ISO8601_any_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 or week, 5=year, 6=none). A value of 6 will allow an empty string to match.

...

Passed to pattern_ISO8601_any_date() and pattern_ISO8601_time()