Date specification

From OpenStreetMap Wiki
(Redirected from ISO 8601)
Jump to: navigation, search
Available languages — Date specification
· Afrikaans · Alemannisch · aragonés · asturianu · azərbaycanca · Bahasa Indonesia · Bahasa Melayu · Bân-lâm-gú · Basa Jawa · Baso Minangkabau · bosanski · brezhoneg · català · čeština · dansk · Deutsch · eesti · English · español · Esperanto · estremeñu · euskara · français · Frysk · Gaeilge · Gàidhlig · galego · Hausa · hrvatski · Igbo · interlingua · Interlingue · isiXhosa · isiZulu · íslenska · italiano · Kiswahili · Kreyòl ayisyen · kréyòl gwadloupéyen · Kurdî · latviešu · Lëtzebuergesch · lietuvių · magyar · Malagasy · Malti · Nederlands · Nedersaksies · norsk bokmål · norsk nynorsk · occitan · Oromoo · oʻzbekcha/ўзбекча · Plattdüütsch · polski · português · português do Brasil · română · shqip · slovenčina · slovenščina · Soomaaliga · suomi · svenska · Tiếng Việt · Türkçe · Vahcuengh · vèneto · Wolof · Yorùbá · Zazaki · српски / srpski · беларуская · български · қазақша · македонски · монгол · русский · тоҷикӣ · українська · Ελληνικά · Հայերեն · ქართული · नेपाली · मराठी · हिन्दी · অসমীয়া · বাংলা · ਪੰਜਾਬੀ · ગુજરાતી · ଓଡ଼ିଆ · தமிழ் · తెలుగు · ಕನ್ನಡ · മലയാളം · සිංහල · ไทย · မြန်မာဘာသာ · ລາວ · ភាសាខ្មែរ · ⵜⴰⵎⴰⵣⵉⵖⵜ · አማርኛ · 한국어 · 日本語 · 中文(简体)‎ · 吴语 · 粵語 · 中文(繁體)‎ · ייִדיש · עברית · اردو · العربية · پښتو · سنڌي · فارسی · ދިވެހިބަސް

Openstreetmap uses a subset of the ISO 8601 standard for single dates, and in most cases a simplified (not ISO 8601 compatible) notation for year ranges.

Single date

In the simplest case the date is a four digit year ("YYYY") or full date as ("YYYY-MM-DD")

Examples:

  • "1984"
  • "1984-3-27"

Date ranges

In most cases the format "YYYY-YYYY" (such as "1964-1986") is used which is not ISO 8601 compatible and allows only the specification years.

If a range defined by full dates should be specified a double hyphen ("--") could be used as date separator - eg "1964-1-28--1986-3-17" or "1965--1986-3-17"

Examples:

  • "-1964" - until 1964, alternative and rarely used form "--1964"
  • "1964-" - from 1964 and still valid, alternative and rarely used form "1964--"
  • "1964-1986" - years 1964-1986, alternative form "1964--1986"
  • "1964-1-28--1986-3-17"
  • "1965--1986-3-17"

Uses in Openstreetmap

Date namespace

The date namespace can be used to map history of features.

  • example "building:1910--1955=school" + "building:1955--=house"

Key:opening_date

See opening_date=*

Software considerations

In places where single dates are expected normal ISO 8601 parsing routines should yield correct results.

In places where date ranges are expected the software could check for the simplified single hyphen notation and then fall back to ISO 8601 parsing of date ranges.

See also