(git HEAD) std.datetime spewing deprecation messages
Meta via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jun 4 07:16:29 PDT 2014
On Wednesday, 4 June 2014 at 11:28:52 UTC, Kagamin wrote:
> Does one really needs only one component, but not the others?
> Maybe it should provide full computed broken form instead of
> separate components?
>
> auto d=dur.breakUp;
> d.hours; d.minutes; d.seconds;
In some glorious future where we can destructure tuples, you
could do something like this:
(hours, minutes, seconds) = dur.parts;
More information about the Digitalmars-d
mailing list