[Gambas-user] where is my error ?
Charlie Reinl
na2492 at ...9...
Sun Jun 19 13:15:09 CEST 2005
>DIM da AS Date
>
> da = vb.DateAdd("s", 1119169186,CDate("01/01/1970 00:00:00"))
> PRINT Format(da, "dd/mm/yyy hh:nn:ss")
>
>it return :
>
>10.12.1969 23:12:01
>
>is there a bug ?
>
>Fabien Bodard
>
Salut Fabien,
what should be wrong, the 3y in Format ?
Yes they give a 4 digis year.
The DateAdd ??
I tryed :
da = vb.DateAdd("s", 60,CDate("01/01/1970 00:00:00"))
PRINT Format(da, "dd/mm/yyyy hh:nn:ss")
= 01/01/1970 00:01:00 (one minute)
da = vb.DateAdd("s", 3600,CDate("01/01/1970 00:00:00"))
PRINT Format(da, "dd/mm/yy hh:nn:ss")
= 01/01/70 01:00:00 (one houre)
now if DateAdd workes well with 1119169186 I do not know
Amicament
Charlie
* Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de *
More information about the User
mailing list