std.datetime: converting AM/PM to 24 hour format

Timothee Cour via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 19 13:43:59 PDT 2016


Not that it's hard to do, but would be nice to have this in std.datetime,
just ran into some data that was using AM/PM.
eg:
if(AMPM == "PM" && hours<12) hours = hours+12;
if(AMPM == "AM" && hours==12) hours = hours-12;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20160819/a161bdd0/attachment.html>


More information about the Digitalmars-d mailing list