P0Y0M0DT1H0M0 区间是多少?

What is P0Y0M0DT1H0M0 interval?

我正在开发一个应用程序,在该应用程序中,客户给了我一个 "P0Y0M0DT1H0M0.000S" 的时间间隔。我不知道这是什么,我该如何解析?

我想在我的 .net 应用程序中从 P0Y0M0DT1H0M0.000S 开始时间。我想知道这种格式是什么意思,互联网上是否有任何可用的 link 解释(显然我在发布之前进行了搜索!)?

我也不知道这个问题应该放在哪个标签下。

它可能受到 XML 描述的 Duration 数据类型的启发 here

The time interval is specified in the following form "PnYnMnDTnHnMnS" where:

  • P indicates the period (required)
  • nY indicates the number of years
  • nM indicates the number of months
  • nD indicates the number of days
  • T indicates the start of a time section (required if you are going to specify hours, minutes, or seconds)
  • nH indicates the number of hours
  • nM indicates the number of minutes
  • nS indicates the number of seconds