Table of contents

Search on the page

ISO 8601

Brief Description

ISO 8601 is an international standard for the representation of date formats and times. This standard is used in various data sets and APIs published on opentransportdata.swiss.

Functional Description

The ISO 8601 format is as follows: YYYY-MM-DDThh:mm:ss.mmmZ

  • The following terms are used:
  • YYYY stands for the Gregorian year with 4 fixed digits (e.g. 2019).
  • MM stands for the two-digit number of the month in the year (01 to 12).
  • DD represents the date of the month with two digits (01 to 31).
  • T is always written literally. Stands for the beginning of the time definition
  • hh stands for the two-digit time of day (00 to 24)
  • mm stands for the minute with two digits (00 to 59)
  • ss stands for two-digit seconds (00 to 59)
  • mmm stands for the three-digit millisecond (000 to 999)
  • The time is given in UTC± 01:00 or +02:00, with a Z after the hour and without spaces. Z stands for zero meridian, also known as Zulu in the international radio alphabet.