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
- 2 rules (0 by field name, 2 by value)
timerangevaluedata, common/dateandtime.yamltimerangebypatdata, ext/ext_datetime.yaml
- Supported by tools
- metacrafter
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.
Test a value
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 | datetime | RU | Time range written in Russian |
Child datatypes
| ID | Name | Categories | Countries | Description |
|---|---|---|---|---|
| opening_hours | Opening hours | datetime | global | Days and hours when an organization, office or facility is open or receives visitors, for example weekdays from 8:00 to 17:00 with a... |
Use this record
- Page URL:
https://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