[fpc-pascal] DateTimeToFileDate
Jonas Maebe
jonas.maebe at elis.ugent.be
Sun Sep 14 18:02:54 CEST 2008
On 14 Sep 2008, at 16:56, Carsten Bager wrote:
>> The FileDate format differ on unix and windows. UnpackTime uses the
>> windows format. You need another function for unix.
>
> Is the file date on Unix the number of seconds since 00:00:00
> January 1,
> 1970.
Yes, and you also still have to adjust for the current time zone. It's
probably easier to just use the regular rtl routines. If you want to
program it yourself, search for datetime in rtl/unix/sysutils.pp
Jonas
More information about the fpc-pascal
mailing list