How to get current time as long or ulong?

Jonathan M Davis via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 5 11:43:32 PDT 2016


On Tuesday, July 05, 2016 11:16:31 Charles Hixson via Digitalmars-d-learn 
wrote:
> What I'm looking for is the opposite of the "FromUnixTime" function.

SysTime has toUnixTime, which is right above fromUnixTime in the
documentation.

But if what you want is a time_t, and you don't want to deal with SysTime,
there's no point in using std.datetime. Just use core.time to call C's time
function.

- Jonathan M Davis



More information about the Digitalmars-d-learn mailing list