[fpc-pascal] FileAge() issue?
silvioprog
silvioprog at gmail.com
Fri Jan 15 02:59:33 CET 2016
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*
Delphi (Seattle): 20/05/2014 10:33:*49*
NodeJS: Tue May 20 2014 10:33:*49* GMT-0300 (E. South America Standard Time)
C: Tue May 20 10:33:*49* 2014
Java: 05/20/2014 10:33:*49*
=== begin BAT code ===
C:\>for /f "delims=" %i in ('"forfiles /m COPYING.txt /c "cmd /c echo
@fdate @ftime" "') do @echo %i
20/05/2014 10:33:*49*
=== end BAT code ===
My environment:
Lazarus 1.7 rUnknown FPC 3.1.1 i386-win32-win32/win64 on Windows 7
Download all sources used in the test here [1].
Thank you!
[1] - https://www.dropbox.com/s/lm40ge0jxccq38w/fileage.zip?dl=1
--
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160114/8c91242a/attachment.html>
More information about the fpc-pascal
mailing list