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
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
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
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
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
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
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 ?