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@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

Reply via email to