- Building Microservices with Go
- Nic Jackson
- 173字
- 2021-07-15 17:28:16
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".
推薦閱讀
- 數據庫系統原理及MySQL應用教程(第2版)
- 少兒人工智能趣味入門:Scratch 3.0動畫與游戲編程
- 大學計算機應用基礎實踐教程
- Arduino by Example
- Visual C++數字圖像模式識別技術詳解
- Building Mobile Applications Using Kendo UI Mobile and ASP.NET Web API
- 21天學通C++(第6版)
- Symfony2 Essentials
- Python機器學習基礎教程
- .NET 3.5編程
- HTML5 APP開發從入門到精通(微課精編版)
- The Professional ScrumMaster’s Handbook
- Visual FoxPro 6.0程序設計
- Mastering Elixir
- Learning Ionic(Second Edition)