- 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".
推薦閱讀
- 少年輕松趣編程:用Scratch創作自己的小游戲
- Python Tools for Visual Studio
- NumPy Essentials
- Python機器學習編程與實戰
- Learning Python by Building Games
- Mastering Apache Maven 3
- 碼上行動:用ChatGPT學會Python編程
- C程序設計實踐教程
- Nagios Core Administration Cookbook(Second Edition)
- Qlik Sense? Cookbook
- Mastering Elixir
- C語言程序設計與應用實驗指導書(第2版)
- ROS機器人編程實戰
- Apache Solr for Indexing Data
- Mastering PostgreSQL 11(Second Edition)