getting current DateTime
ketmar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Dec 30 22:31:05 PST 2014
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20141231/53042faf/attachment.sig>
More information about the Digitalmars-d-learn
mailing list