Re: [Harbour] time in seconds since 1970

2009-03-28 Thread Guy Roussin
Thank you very much Przemek, Now i understand. Very good example. Note that i'm looking for this function to "simulate" the time() function of php ... http://www.w3schools.com/php/func_date_time.asp Best regards, Guy Przemyslaw Czerpak a écrit : On Sat, 28 Mar 2009, Guy Roussin wrote: Hi

Re: [Harbour] time in seconds since 1970

2009-03-28 Thread Przemyslaw Czerpak
On Sat, 28 Mar 2009, Guy Roussin wrote: > Hi Przemek, > Why i get this : > ? hb_ntot( HB_MILLISECONDS() ) > 00/00/00 00:00:00.000 Because HB_MILLISECONDS() returns julian time in milliseconds. I guess you wanted to make sth like: ? hb_ntot( HB_MILLISECONDS() / ( 24 * 60 * 60 * 1000 ) ) And you

Re: [Harbour] time in seconds since 1970

2009-03-28 Thread Guy Roussin
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

Re: [Harbour] time in seconds since 1970

2009-03-27 Thread Guy Roussin
Hi Przemek, 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 millis

Re: [Harbour] time in seconds since 1970

2009-03-27 Thread Przemyslaw Czerpak
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 va

Re: [Harbour] time in seconds since 1970

2009-03-27 Thread Guy Roussin
Hi Viktor, 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 ... Guy Viktor Szakáts a écrit : Hi Guy, In ms: ? ( hb_datetime() - t"1970-01-01" ) * ( 24 * 60 * 60 * 1000 ) -- Viktor

Re: [Harbour] time in seconds since 1970

2009-03-27 Thread Viktor Szakáts
Hi Guy, In ms: ? ( hb_datetime() - t"1970-01-01" ) * ( 24 * 60 * 60 * 1000 ) -- Viktor On Fri, Mar 27, 2009 at 7:09 PM, Guy Roussin wrote: > Hi, > > I try to get the time since 1970/01/01 0:00 GMT > in seconds (same as date '+%s') or better in milliseconds > with harbour. > > How can i do that ?