delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/09/01/05:01:07

To: babcock AT cfa DOT harvard DOT edu
Cc: davis AT amy DOT tch DOT harvard DOT edu (), djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: New time routines
Date: Thu, 01 Sep 94 09:26:34 +0200
From: eliz AT is DOT elta DOT co DOT il

> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019