Useful D snippets

From D Wiki
Revision as of 19:52, 15 May 2015 by Laeeth (talk | contribs) (Created page with " http://dlang.org/intro-to-datetime.html import std.datetime; import core.stdc.time; void main() { time_t unixTime = core.stdc.time.time(null); auto stdTime =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

http://dlang.org/intro-to-datetime.html

import std.datetime; import core.stdc.time; void main() {

       time_t unixTime = core.stdc.time.time(null);
       auto stdTime = unixTimeToStdTime(unixTime);
       auto st = SysTime(stdTime);

}