[Issue 24288] std time handling SUX
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 20 13:39:18 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24288
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nick at geany.org
--- Comment #1 from Nick Treleaven <nick at geany.org> ---
This is what I came up with, not sure if there's a better way:
const tod = cast(TimeOfDay) Clock.currTime;
(tod.hour * 60 + tod.minute).writeln();
--
More information about the Digitalmars-d-bugs
mailing list