Time range
ID timerange
DatatypeNot PIIDraft
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
Interval between two points of time, like 8:00-21:00 or 8:00AM-1:00PM.
- Categories
- Date and time
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- Quality
- 70/100 · missing: source link, mapping (Wikidata, Schema.org, ...), translation
- Metacrafter rules
- 1 rule (0 by field name, 1 by value)
timerangebypatdata, ext/ext_datetime.yaml
- Supported by tools
- metacrafter, metacrafterpro
Regular expression
^(?:[01]?\d|2[0-4]):[0-5]\d ?(?:[AaPp][Mm])? ?[-–] ?(?:[01]?\d|2[0-4]):[0-5]\d ?(?:[AaPp][Mm])?$
Python re syntax.
Examples
| Value | Description |
|---|---|
| 08:00-22:00 | Opening hours |
| 8:00AM-1:00PM | Opening hours with a 12-hour clock |
| 9:00 - 15:00 | With spaces around the dash |
| 08:00 invalid | A single time |
Patterns
Specific representations of this datatype.
| ID | Name | Categories | Countries | Description |
|---|---|---|---|---|
| rustimerange | Time range (Russian) pattern draft | datetime | RU | Time range written in Russian |
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/timerange - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/datetime/timerange.yamlon GitHub