- 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".
推薦閱讀
- WebAssembly實戰
- Offer來了:Java面試核心知識點精講(原理篇)
- Java性能權威指南(第2版)
- Learning Python by Building Games
- Python機器學習算法與實戰
- Oracle Exadata專家手冊
- .NET 3.5編程
- Swift 4 Protocol-Oriented Programming(Third Edition)
- Quantum Computing and Blockchain in Business
- Python:Deeper Insights into Machine Learning
- Java EE 7 with GlassFish 4 Application Server
- Akka入門與實踐
- 黑莓(BlackBerry)開發從入門到精通
- WordPress Search Engine Optimization(Second Edition)
- SFML Game Development