[fpc-pascal] FileAge() issue?
Michael Van Canneyt
michael at freepascal.org
Fri Jan 15 08:15:35 CET 2016
On Thu, 14 Jan 2016, silvioprog wrote:
> Hello,
>
> I'm trying to get the datetime from a file, but it seems that the FileAge()
> function doesn't work properly. See only the second from the results below:
>
> FPC: 20/05/2014 10:33:*50*
It seems like a rounding difference.
home: >ls -l --time-style=+'%Y-%m-%d %H:%M:%S' COPYING.txt
-rw-r--r-- 1 michael michael 1579 2014-05-20 10:33:50 COPYING.txt
home: >./testfpc
20-5-14 09:33:50
Press [ENTER] to exit ...
So the actual timestamp is probably a border case value.
Michael.
More information about the fpc-pascal
mailing list