Date and time
ID datetime
DatatypeNot PII
Date and time of day. The regexp covers the ISO 8601 extended form YYYY-MM-DDThh:mm[:ss[.fff]] with an optional time zone (Z or an offset), and the RFC 3339 variant with a space instead of T. Some data sets store plain dates as timestamps at midnight local time, for example 2021-05-24T21:00:00.000Z for 25 May 2021 in Moscow.
- Categories
- Date and time
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- AutoType benchmark
date-R,date-chinese2,date-f,date-g,date-german,date-mixed,date-o,date-s,date-spanish,date-u,date5,date6,date7,date8,date9- D3M
http://schema.org/DateTime- MISP attribute type
datetime- Quality
- 100/100
- Metacrafter rules
- 9 rules (7 by field name, 2 by value)
createddatebyknownfield, common/dateandtime.yamldatetimeknownfield, common/dateandtime.yamlmodifieddatebyknownfield, common/dateandtime.yamlsasdatetimevaluedata, common/dateandtime.yamltimestampdatebyknownfield, common/dateandtime.yamlupdateddatebyknownfield, common/dateandtime.yamldedatetimenamefield, de/de_datetime.yamlnldatetimepatterndata, nl/nl_datetime.yaml- and 1 more (see the JSON)
- Supported by tools
- Alteryx Designer Cloud, Auctus, Auto-Type, Amazon Comprehend, Collibra Data Classification, csv-detective, Dataiku DSS, DataPrep, Capital One DataProfiler, Frictionless Table Schema, Google Data Studio, Logstash and Elastic grok patterns, Metabase, metacrafter, pyWhat, SAS Information Catalog (Quality Knowledge Base), SDV sdtypes (Synthetic Data Vault), Talend (Qlik Talend Data Preparation, Data Catalog and Data Inventory), validator.js, visions and ydata-profiling, Alteryx Woodwork
Regular expression
^\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\d|3[01])[T ](?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:[.,]\d+)?)?(?:Z|[+-](?:[01]\d|2[0-3])(?::?[0-5]\d)?)?$
Python re syntax.
Test a value
Examples
| Value | Description |
|---|---|
| 2024-08-30T12:00:00.000Z | UTC timestamp with milliseconds |
| 2018-10-10T12:58:52Z | |
| 2024-11-29 12:00:00 | Space separator, as allowed by RFC 3339 |
| 2019-07-19T09:00:00+03:00 | Local time with an offset |
| 2024-08-30 invalid | A date without a time is the datatype date |
Patterns
Specific representations of this datatype.
| ID | Name | Categories | Countries | Description |
|---|---|---|---|---|
| excel_serial_datetime | Date and time as an Excel serial number pattern | datetime | global | Point in time written as the serial number of spreadsheets: the whole part counts the days since 30 December 1899 and the fraction is... |
Child datatypes
| ID | Name | Categories | Countries | Description |
|---|---|---|---|---|
| decimal_year | Decimal year (year with a fraction) | datetime, science | global | A point in time written as a number: the year and, as a decimal fraction, the part of the year that has passed (1994.83 is late October... |
| unixtime | Digital timestamp (Unix time, Epoch time, Posix time) stable | datetime | global | Digital timestamp defined as Unix Time. It is a system for describing a point in time. It is the number of seconds that have elapsed... |
| unixtime_ms | Unix time in milliseconds | datetime | global | A point in time written as the number of milliseconds since the Unix epoch (1970-01-01T00:00:00Z), negative before it. JavaScript Date... |
Translations
| Language | Name | Description |
|---|---|---|
| Russian | Дата и время | Дата и время суток. Регулярное выражение описывает форму ISO 8601 ГГГГ-ММ-ДДTчч:мм[:сс[.fff]] с необязательным часовым поясом (Z или смещение) и вариант RFC 3339 с пробелом вместо T. |
Sources
- wikipedia: Date and time notation (en.wikipedia.org)
- wikipedia: ISO 8601 (en.wikipedia.org)
- schema.org: schema.org/DateTime
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/datetime - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/datetime/datetime.yamlon GitHub