Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Duration – what does PT2M1.06234S mean?

I am using Duration and it prints me

PT2M1.06234S

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

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

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

Yes.

This format is defined in ISO 8601. Read more about it on Wikipedia. From there:

  • 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.
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading