> I am trying to get the number of seconds from 1970 using the
> std.datetime module.
>
> long val = SysTime(Date(1996, 1, 1)).toUnixTime()
>
> Shouldnt the above statement give me a Timezone independent result i.e.
> 'toUnixTime'.
unix time is _always_ in UTC by definition.
You're creating a S
I am trying to get the number of seconds from 1970 using the
std.datetime module.
long val = SysTime(Date(1996, 1, 1)).toUnixTime()
Shouldnt the above statement give me a Timezone independent result i.e.
'toUnixTime'.
Also, is there a method to get seconds directly from Date and DateTime
in