Remix.run Logo
fzeindl 6 days ago

ISO8601 durations should be used, like PT3M.

mort96 6 days ago | parent | next [-]

Oh wow, never looked at ISO8601 durations before and I had no idea they were this ugly. Please, no, don't make me deal with ISO8601. I'd rather write a number of seconds or a format like 'X weeks' or 'Y hours Z minutes'x ISO8601 looks exclusively like a data interchange format

johanyc 5 days ago | parent | next [-]

https://docs.digi.com/resources/documentation/digidocs/90001...

It's pretty simple actually.

> 'X weeks' or 'Y hours Z minutes'

PxW, PTyHzM. So simple that I learned it in a few seconds.

mort96 5 days ago | parent [-]

I learned it too. It's just ugly. Before I looked at the relevant section of the ISO 8601 duration format yesterday, I didn't know it. After I looked at it, I now know it, and I strongly dislike it.

cluckindan 5 days ago | parent | prev [-]

When in doubt, use only seconds. PT86400S

aa-jv 6 days ago | parent | prev [-]

Should be easy, just add the ISO8601-duration package to your project ..

/s