[fpc-pascal] FileAge() issue?

silvioprog silvioprog at gmail.com
Sat Jan 16 01:55:03 CET 2016


On Fri, Jan 15, 2016 at 9:42 PM, silvioprog <silvioprog at gmail.com> wrote:
[...]

> FPC (3.1.1 - trunk): 05/20/2014 10:33:*50.000*
>
> Comparing it with Delphi (using same FPC code) and Node
> (console.log(stat.mtime.*toISOString*()):
>
> Delphi (Seattle): 05/20/2014 10:33:*49.646*
>
> Node: 2014-05-20T13:33:*49.646*Z
>

It seems a bug in the fpc datetime formater func:

:~$ ls -l --time-style=+'%Y-%m-%d %H:%M:%S.%3N' COPYING.txt
-rwxrwx--- 1 silvioprog silvioprog 1579 2014-05-20 10:33:*49.646*
COPYING.txt

Env:

:~$ fpc
Free Pascal Compiler version 3.1.1 [2015/10/20] for x86_64
Copyright (c) 1993-2015 by Florian Klaempfl and others

:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

-- 
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160115/afecbdc5/attachment.html>


More information about the fpc-pascal mailing list