Re: [fpc-pascal] Get Timestamp since 1970 (linux)

2007-06-04 Thread TOUZEAU DAVID
Many thanks Seweryn, i use it var ANow,AThen : TDateTime; begin ANow:=now; AThen:=EncodeDateTime(1970, 1, 1, 0, 0, 0, 0); result:=IntTostr(SecondsBetween(ANow,AThen)-7200);//7200 for GMT +2 end; Seweryn Walentynowicz a écrit : On Mon, Jun 04, 2007 at 09:27:55AM +0200, patr

Re: [fpc-pascal] Get Timestamp since 1970 (linux)

2007-06-04 Thread Seweryn Walentynowicz
On Mon, Jun 04, 2007 at 09:27:55AM +0200, patrick feillant wrote: > MilliSecondsBetween > Maybe simpler Secondsbetween() ? :o) > 2007/6/4, TOUZEAU DAVID <[EMAIL PROTECTED]>: > > > >Is there a function that help m

Re: [fpc-pascal] Get Timestamp since 1970 (linux)

2007-06-04 Thread Henry Vermaak
On 04/06/07, TOUZEAU DAVID <[EMAIL PROTECTED]> wrote: Dear Is there a function that help me to calculate seconds since 1970 year ? exactly the same of this command : /bin/date +%s -d 20070103 this will do what you want?: function LocalToEpoch( year: Word; month: Word; day: Word; hour:

Re: [fpc-pascal] Get Timestamp since 1970 (linux)

2007-06-04 Thread TOUZEAU DAVID
Many thanks patrick i will try it ! patrick feillant a écrit : Hello, You can do that with ? MilliSecondsBetween Calculate the number of whole milliseconds between two DateTime values.

Re: [fpc-pascal] Get Timestamp since 1970 (linux)

2007-06-04 Thread patrick feillant
Hello, You can do that with ? MilliSecondsBetween Calculate the number of whole milliseconds between two DateTime values. between encodedatetime(1970,1,1,0,0,0,0) and Present I don't test, but it's probably o

Re: [fpc-pascal] Get Timestamp since 1970 (linux)

2007-06-03 Thread Catalin Zamfir Alexandru
See the dateutls unit provided by FPC. On Monday 04 June 2007 02:22, TOUZEAU DAVID wrote: > Dear > > Is there a function that help me to calculate seconds since 1970 year ? > > exactly the same of this command : > > /bin/date +%s -d 20070103 > > best regards pgp5xqIQ1r2Yg.pgp Description: PGP si

[fpc-pascal] Get Timestamp since 1970 (linux)

2007-06-03 Thread TOUZEAU DAVID
Dear Is there a function that help me to calculate seconds since 1970 year ? exactly the same of this command : /bin/date +%s -d 20070103 best regards -- David Touzeau -- Linux Ubuntu Dapper 6.0.6 FreePascal-Lazarus,perl,delphi,php icq:160018849