delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/09/07/13:31:50

Date: Sun, 7 Sep 1997 13:31:34 -0400 (EDT)
Message-Id: <199709071731.NAA04872@delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: eliz AT is DOT elta DOT co DOT il
CC: djgpp-workers AT delorie DOT com
In-reply-to: <Pine.SUN.3.91.970907190603.2962C-100000@is> (message from Eli
Zaretskii on Sun, 7 Sep 1997 19:08:17 +0300 (IDT))
Subject: Re: 970831: mktime()

> When the zip file was unpacked, shouldn't UnZip set its DOS time stamp so 
> that this never happens (assuming TZ is set)?  The timezone file should 
> tell whether DST is in effect or not, no?

Something as simple as "dir > file.txt" could create a file with a DOS
timestamp with two possible time_t values, because *dos* doesn't store
the timezone information with the file.

Besides, converting a time_t to a dos date/time *can* create a
date/time that cannot be uniquely converted back to a time_t, if the
time corresponded to the last hour of daylight savings time (turn the
clock back, and gee, it's 1:15 AM again!  Which one?)

- Raw text -


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