time12 constant

Pattern const time12

Time (12-hour format with AM/PM) Regex Examples: 1:45 PM, 12:00 am, 09:15 Am

Implementation

static const Pattern time12 =
    r'^(0?[1-9]|1[0-2]):[0-5][0-9](\s)?(?i)(AM|PM)$';