持续时间 - PT2M1.06234S 是什么意思?

Duration - what does PT2M1.06234S mean?

我正在使用 Duration,它打印出我

PT2M1.06234S

这是否意味着持续时间代表 2 分 1.06 秒

Does that mean that the duration represents 2 minutes and 1.06 seconds?

是的。

此格式在 ISO 8601 中定义。在 Wikipedia 上阅读更多相关信息。从那里:

  • P is the duration designator (for period) placed at the start of the duration representation.
    • Y the number of years.
    • M the number of months.
    • W the number of weeks.
    • D the number of days.
  • T is the time designator that precedes the time components of the representation.
    • H the number of hours.
    • M the number of minutes.
    • S the number of seconds.