Datatypes

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)
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

ValueDescription
08:00-22:00Opening hours
8:00AM-1:00PMOpening hours with a 12-hour clock
9:00 - 15:00With spaces around the dash
08:00 invalidA single time

Patterns

Specific representations of this datatype.

IDNameCategoriesCountriesDescription
rustimerange Time range (Russian) pattern draft datetime RU Time range written in Russian

Use this record