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

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

主站蜘蛛池模板: 瑞昌市| 柘城县| 黄平县| 邳州市| 如皋市| 襄汾县| 苏尼特左旗| 兴化市| 东方市| 利辛县| 贡山| 浏阳市| 东光县| 盐边县| 吕梁市| 顺昌县| 屯昌县| 湘西| 绍兴县| 攀枝花市| 洮南市| 洞头县| 永兴县| 海伦市| 文成县| 杭锦后旗| 烟台市| 句容市| 濮阳县| 德格县| 江达县| 阿勒泰市| 乌拉特后旗| 绥棱县| 新闻| 普陀区| 台北市| 常宁市| 宁河县| 西畴县| 江源县|