[fpc-pascal] FileAge and timezone
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Oct 30 15:14:19 CET 2014
On Thu, 30 Oct 2014 14:40:56 +0100 (CET)
Michael Van Canneyt <michael at freepascal.org> wrote:
>
>
> On Thu, 30 Oct 2014, Mattias Gaertner wrote:
>
> > Hi,
> >
> > The docs of FileAge does not mention if timezone is used or not.
> >
> > http://lazarus-ccr.sourceforge.net/docs/rtl/sysutils/fileage.html
> >
> > Is the returned OS time stamp with or without timezone?
>
> That depends on the OS. FileAge returns whatever the OS returns.
Some OS has several functions/options, so there is a choice.
> The following is based on memory alone, needs to be checked in code:
> It doesn't do any transformations, so I expect it actually to be UTC.
> Only when converting to TDateTime is the timzeone introduced.
Under Linux I see UTC.
But on Windows it seems to return with timezone. See this bug:
http://bugs.freepascal.org/view.php?id=26963
Mattias
More information about the fpc-pascal
mailing list