Logo

Programming-Idioms

History of Idiom 61 > diff from v11 to v12

Edit summary for version 12 by :

Version 11

2015-08-20, 17:02:14

Version 12

2015-08-20, 17:03:09

Idiom #61 Get current date

Assign to variable d the current date/time value, in the most standard type.

Idiom #61 Get current date

Assign to variable d the current date/time value, in the most standard type.

Imports
import std.datetime;
Imports
import std.datetime;
Code
auto d = Clock.currTime;
Code
auto d = Clock.currTime;
Comments bubble
Returns the current system time.
Comments bubble
Returns a struct representing the current system time in the appropriate timezone.
Demo URL
http://dpaste.dzfl.pl/d474bfb0c9d8
Demo URL
http://dpaste.dzfl.pl/d474bfb0c9d8