官术网_书友最值得收藏!

Durations

Durations are serialized to conform with ISO 8601 and are represented by the following format:

P[n]Y[n]M[n]DT[n]H[n]M[n]S 
  • P: This is the duration designator (historically called "period") placed at the start of the duration representation
  • Y: This is the year designator that follows the value for the number of years
  • M: This is the month designator that follows the value for the number of months
  • W: This is the week designator that follows the value for the number of weeks
  • D: This is the day designator that follows the value for the number of days
  • T: This is the time designator that precedes the time components of the representation
  • H: This is the hour designator that follows the value for the number of hours
  • M: This is the minute designator that follows the value for the number of minutes
  • S: This 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".

主站蜘蛛池模板: 兴国县| 会昌县| 黄浦区| 邹平县| 北海市| 琼海市| 利川市| 海伦市| 呼伦贝尔市| 珲春市| 宁武县| 高阳县| 鄂温| 万山特区| 翁源县| 承德县| 宣恩县| 三江| 新丰县| 体育| 东方市| 西藏| 且末县| 武城县| 台湾省| 长治市| 铜陵市| 阿荣旗| 瑞安市| 社旗县| 彭州市| 商南县| 遂昌县| 枝江市| 苍梧县| 和硕县| 阳春市| 涿州市| 平利县| 武功县| 文昌市|