What's a good wat to trunctate a time point
Dukc via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri May 5 03:36:58 PDT 2017
On Friday, 5 May 2017 at 09:14:21 UTC, Biotronic wrote:
>
> Here's an implementation that supports start of year, month,
> week, day, hour, minute and second. Works for DateTime and
> SysTime. Not heavily tested (all tests included):
>
> [lots of code]
Wow! You might want to create a pr to phobos from that -It is so
general, and despite what you say I have seen much worse tested
stuff there.
Thanks for the reply.
More information about the Digitalmars-d-learn
mailing list