[fpc-pascal] FileAge and timezone

Michael Van Canneyt michael at freepascal.org
Thu Oct 30 14:40:56 CET 2014



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.

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.

Michael.



More information about the fpc-pascal mailing list