[fpc-pascal] Get Timestamp since 1970 (linux)
patrick feillant
patrick at feillant.com
Mon Jun 4 09:27:55 CEST 2007
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>:
>
> 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
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20070604/60d3bef1/attachment.html>
More information about the fpc-pascal
mailing list