Since I got those from Ikea, I just want devices to go back to those types of batteries instead of internal battery packs. Still got to appreciate the Xbox controllers sticking to that principle (for now).
Don’t get me wrong - I think an included battery that’s rechargeable through USB is fantastic. Less customer inconvenience. But they should either go with a standard that’s easily reproducible or go with regular rechargeable batteries.
It handles ambiguity too. Want to say something lasts for a period of 1 month without needing to bother checking how many days are in the current and next month? P1M. Done. Want to be more explicit and say 30 days? P30D. Want to say it in hours? Add the T separator: PT720H.
I used this kind of notation all the time when exporting logged historical data from SCADA systems into a file whose name I wanted to quickly communicate the start of a log and how long it ran:
20230701T0000-07–P30D…v101_pressure.csv
(“–” is the ISO-8601 (2004) recommended substitute for “/” in file names)
If anyone is interested, I made this Bash script to give me uptime but expressed as an ISO 8601 time period.
But if they day is less than 12 you have no way of verifying it’s not supposed to actually be DD-MM-YYYY, plus sorting by date is all fucked if you don’t put year first…
lemmy.ml
Hot