gpt4 book ai didi

.net - P0Y0M0DT1H0M0 区间是多少?

转载 作者:行者123 更新时间:2023-12-01 11:27:18 25 4
gpt4 key购买 nike

我正在开发一个应用程序,其中我从客户那里得到了一个时间间隔“P0Y0M0DT1H0M0.000S”。我不知道这是什么,我该如何解析?

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

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

最佳答案

它可能受到描述的 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

关于.net - P0Y0M0DT1H0M0 区间是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36304755/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com