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

TOUZEAU DAVID david.touzeau at fr.kaspersky.com
Mon Jun 4 10:44:12 CEST 2007


Many thanks patrick i will try it !

patrick feillant a écrit :
> Hello,
> You can do that with ?
>
> MilliSecondsBetween 
> <http://lazarus-ccr.sourceforge.net/fpcdoc/rtl/dateutils/millisecondsbetween.html>
>
> 	
>
>   
>
> 	
>
> 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 ok.
>
> bye
>
> 2007/6/4, TOUZEAU DAVID <david.touzeau at fr.kaspersky.com 
> <mailto:david.touzeau at fr.kaspersky.com>>:
>
>     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
>     _______________________________________________
>     fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>     <mailto:fpc-pascal at lists.freepascal.org>
>     http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
>

-- 
David Touzeau -------------------------- Linux Ubuntu Dapper 6.0.6 
FreePascal-Lazarus,perl,delphi,php icq:160018849




More information about the fpc-pascal mailing list