How to get current time as long or ulong?
yawniek via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jul 6 04:24:19 PDT 2016
On Tuesday, 5 July 2016 at 18:16:31 UTC, Charles Hixson wrote:
> What I'm looking for is the opposite of the "FromUnixTime"
> function.
i often use
long toNsUnixTime(SysTime t)
{
return (t.stdTime - 621_355_968_000_000_000L)*100;
}
as a helper. any chance that something like this can be put into
phobos?
its needed to work with external libraries or network services
that expect this format.
More information about the Digitalmars-d-learn
mailing list