Thread overview | |||||
---|---|---|---|---|---|
|
April 07, 2004 [BUG](low) wrong conversion in std.date | ||||
---|---|---|---|---|
| ||||
code: import std.date; void main(){ static int times[3]=[ -61367296, -36334592, -11301888] ; d_time t= parse("1 1 1970"); for( int i= 0; i < 3; i++){ printf("%.*s\n", toString( t + times[ i])); } } output: Thu ^FA -1 08:58:13 GMT+0100 1969 Thu ^FA -1 15:55:26 GMT+0100 1969 Thu ^FA -1 22:52:39 GMT+0100 1969 So long. |
April 07, 2004 Re: [BUG](low) wrong conversion in std.date | ||||
---|---|---|---|---|
| ||||
Posted in reply to Manfred Nowak | In article <c4vh2i$nuq$1@digitaldaemon.com>, Manfred Nowak says... > >code: > >import std.date; > >void main(){ > static int times[3]=[ > -61367296, > -36334592, > -11301888] > ; > > d_time t= parse("1 1 1970"); > for( int i= 0; i < 3; i++){ > printf("%.*s\n", toString( t + times[ i])); > } >} > >output: > >Thu ^FA -1 08:58:13 GMT+0100 1969 >Thu ^FA -1 15:55:26 GMT+0100 1969 >Thu ^FA -1 22:52:39 GMT+0100 1969 > >So long. |
April 07, 2004 Re: [BUG](low) wrong conversion in std.date | ||||
---|---|---|---|---|
| ||||
Posted in reply to aNT | On Wed, 07 Apr 2004 01:43:10 +0000, aNT wrote:
> In article <c4vh2i$nuq$1@digitaldaemon.com>, Manfred Nowak says...
>>
>>code:
>>
>>import std.date;
>>
>>void main(){
>> static int times[3]=[
>> -61367296,
>> -36334592,
>> -11301888]
>> ;
>>
>> d_time t= parse("1 1 1970");
>> for( int i= 0; i < 3; i++){
>> printf("%.*s\n", toString( t + times[ i]));
>> }
>>}
>>
>>output:
>>
>>Thu ^FA -1 08:58:13 GMT+0100 1969
>>Thu ^FA -1 15:55:26 GMT+0100 1969
>>Thu ^FA -1 22:52:39 GMT+0100 1969
>>
>>So long.
I was just asking if this was windows or linux
and suggest that we make that clear in future posts.
I got the same on linux.
Ant
|
Copyright © 1999-2021 by the D Language Foundation