Jump to content

ISO 8601 Time duration standard


Recommended Posts

  • Administrator


I'm guessing that few of us use the ISO 8601 duration format. For those who might find use for it, here is some info.

ISO 8601 Durations are expressed using the following format, where (n) is replaced by the value for each of the date and time elements that follow the (n):

P(n)Y(n)M(n)DT(n)H(n)M(n)S

Where:

  • P is the duration designator (referred to as "period"), and is always placed at the beginning of the duration.
  • Y is the year designator that follows the value for the number of years.
  • M is the month designator that follows the value for the number of months.
  • W is the week designator that follows the value for the number of weeks.
  • D is the day designator that follows the value for the number of days.
  • T is the time designator that precedes the time components.
  • H is the hour designator that follows the value for the number of hours.
  • M is the minute designator that follows the value for the number of minutes.
  • S is the second designator that follows the value for the number of seconds.

For example:

P3Y6M4DT12H30M5S

Represents a duration of three years, six months, four days, twelve hours, thirty minutes, and five seconds.

If you'd like to check out the Wikipedia article: https://en.wikipedia.org/wiki/ISO_8601

time.jpg

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Ham Mega Pad (XXXL)

Ham Word Cloud Pad (XL)

Ham Codes, Signs, Words (Medium)

Ham Band Edges mousepad (Small)

Ham Alliance

Ham Alliance - Billboard - 970*250px

×
×
  • Create New...