On Thu, 30 Oct 2014 14:40:56 +0100 (CET)
Michael Van Canneyt <mich...@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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to