Mail Archives: djgpp/1994/09/01/05:01:07
> I have not followed the TZ stuff very closely. I think the behavior you
> would like is that a program which ignores time zone problems would do
> everything in local time: files newly created would get time stamps agreeing
> with the DOS clock and if the program printed the date and time, these would
> agree with the DOS clock.
This will be always the case if ctime() is used to print time stamps
of files returned by stat(). If you want stat() to return local time,
then either (1) don't set TZ, or (2) set it to GMT0.
Files newly created are always given time stamp taken from the local
clock, because that's how DOS works.
Eli Zaretskii
- Raw text -