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 instead of creating SysTime.

Regards
Mandeep

Reply via email to