APE date

From Hydrogenaudio Knowledgebase
Revision as of 19:17, 2 July 2005 by Rjamorim (talk | contribs)

This is how dates and times are to be represented in the APEv2 tagging system:

Date and Time Format

Date and Time Formats are used to address time points not related with the playback. Usually longer time periods (1 . . . 500 years) with less accuracy (1 day . . . 1 year) are addressed.

  • It is ISO 8601 used as time format to overcome national ambiguously formats.
  • Format is "big endian" text format like the normal arabic numbers. Left digits have a higher weight than right digits.
  • So the meaning is YYYY-MM-DD hh:mm:ss, where YYYY is the year, MM the month, DD the day, hh the hour since midnight, mm the minutes and ss the seconds.
  • Year is four digits, other items are two digits long.
  • Year, month and day are hyphen separated, hour, minute and second with a colon.
  • You can remove right side number for reduced precision representation.
  • To address a special week, the format is YYYY-Www, where YYYY is the year and ww is the week. Week #1 is the first week with it's wednesday in the new year. Weeks #1 until #53 are possible.

Examples:

  • 1999
  • 1999-08
  • 1999-08-11
  • 1999-W34
  • 1999-08-11 12:34
  • 1999-08-11 12:34:56

Weblinks:

Markus G. Kuhn's Time Page