getting current DateTime
bitwise via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Dec 30 22:35:42 PST 2014
On Wednesday, 31 December 2014 at 06:31:13 UTC, ketmar via
Digitalmars-d-learn wrote:
> On Wed, 31 Dec 2014 06:03:04 +0000
> bitwise via Digitalmars-d-learn
> <digitalmars-d-learn at puremagic.com>
> wrote:
>
>> How do you get the current DateTime?
>> Why doesn't DateTime have DateTime.now?
> but it has! ;-)
>
> auto now = cast(DateTime)Clock.currTime;
Ah! indeed it does.
It would be nice if that cast was made implicit though.
Thanks =D
More information about the Digitalmars-d-learn
mailing list