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
