Module: Espressione::Regex::DateTime
- Included in:
- Espressione
- Defined in:
- lib/espressione/regex/datetime.rb
Constant Summary collapse
- DATETIME =
datetime (iso format) pattern
/^\d{4}-\d{2}-\d{2}(\s|T)\d{2}:\d{2}:\d{2}(\s*(UTC|([\-\+]?(\d+|\d{2}:\d{2}))))*$/.freeze
- DATE =
date yyyy/mm/dd pattern
/^\d{4}-\d{2}-\d{2}$/.freeze
- TIME =
time pattern
/^\d{1,2}:\d{1,2}:\d{1,2}$/.freeze