[fpc-pascal]squid date convert help

ghorvath at minolta.hu ghorvath at minolta.hu
Tue Oct 2 18:46:41 CEST 2001

Dear Members,

I have the following problem. I would like to convert squid's unix date to 
TDateTime. How can I do it?
squid's date is e.g. 999270845.163.
It must be interpreted as elapsed seconds from 1970-01-01.
In Unix I can use "date --date '1970-01-01 99270845 sec'" command but 
calling bash from a pascal prog is veryyyy slow.

Please help me !

Sincerely yours,

Gabor Horvath
ghorvath at minolta.hu

More information about the fpc-pascal mailing list