Thread overview
[BUG](low) wrong conversion in std.date
Apr 07, 2004
Manfred Nowak
Apr 07, 2004
aNT
Apr 07, 2004
Ant
April 07, 2004
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
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
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