Date and time and time zones are notoriously hard to handle correctly. What libraries handle time the best? Which ones make it the most difficult to shoot yourself in the foot? Which language has the best standard library date/time module?<p>Various dimensions for comparison include:
- handling of timezones
- handling of durations
- handling of other date/time arithmetic
- formatting and parsing
- explicitness for handling time with timezones vs. UTC
perl5's DateTime "is a class for the representation of date/time combinations"<p>Apart from the modules included in the DateTimeDistribution, there are many others as returned by <a href="https://metacpan.org/search?q=DateTime" rel="nofollow">https://metacpan.org/search?q=DateTime</a><p>My favorite
use DateTime::Format::Baby;<p>my $Baby = DateTime::Format::Baby->new('en');
my $dt = $Baby->parse_datetime('The big hand is on the twelve and the little hand is on the six.');