Unfortunately, it doesn't produce the result one would expect because DateTime(::Duration) realises that not every minute has 60 seconds. Some are longer due to leap seconds.Ah, so, Date::Time favours geek correctness over usability. And by doing so, it's not POSIX compliant (as POSIX says leap seconds are to be ignored). While taking care of leap seconds is useful in some cases, stubbornly refusing to do second/minute conversion because of a leap second every few years most of society ignores without problems makes the module far less useful than it could be.From the docs, the only conversions possible are:
- years ⇔ months
- weeks ⇔ days
- hours ⇔ minutes
- seconds ⇔ nanoseconds
In reply to Re^3: Getting times (weeks, days, hours, minutes, seconds)
by JavaFan
in thread Getting times (weeks, days, hours, minutes, seconds)
by Lady_Aleena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |