Hi Przemek,

Why i get this :

? hb_ntot( HB_MILLISECONDS() )

00/00/00 00:00:00.000

Best regards,

Guy

Przemyslaw Czerpak a écrit :
On Fri, 27 Mar 2009, Guy Roussin wrote:
Thank you for the quick reply.
But i think that -t"1970-01-01" is not "00:00 GMT"
but "00:00 local time" isn't it ?
So this is not exactly the result i expect ...

It doesn't matter. t"1970-01-01" is some timestamp constant value.
Important is base value only.
Number of milliseconds from 1970-01-01 00:00 GMT:

   ? INT( ( hb_ntot( HB_MILLISECONDS() ) - t"1970-01-01" ) * ;
          ( 24 * 60 * 60 * 1000 ) )

Local time difference to GMT in milliseconds:

   ? INT( hb_tton( hb_datetime() ) * ( 24 * 60 * 60 * 1000 ) - ;
          HB_MILLISECONDS() )

HB_MILLISECONDS() returns julian time in milliseconds.

best regards,
Przemek

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to