Re: std.datetime: Getting unix time from 1970

2011-04-25 Thread Jonathan M Davis
> 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

std.datetime: Getting unix time from 1970

2011-04-25 Thread Mandeep
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