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

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".

主站蜘蛛池模板: 永城市| 河池市| 墨江| 扎鲁特旗| 彭水| 嘉善县| 丘北县| 临海市| 南昌县| 宁强县| 呼玛县| 安远县| 柏乡县| 北川| 大理市| 大方县| 云阳县| 横峰县| 绩溪县| 定陶县| 大石桥市| 宿州市| 嘉禾县| 通化县| 中卫市| 四平市| 名山县| 两当县| 肥城市| 扎鲁特旗| 平果县| 鹤岗市| 若羌县| 乐山市| 静乐县| 广饶县| 静海县| 永州市| 革吉县| 白山市| 秭归县|