Path: utzoo!attcan!uunet!husc6!tut.cis.ohio-state.edu!bat.cis.ohio-state.edu!lum From: lum@bat.cis.ohio-state.edu (Lum Johnson) Newsgroups: comp.std.c Subject: Re: The type of time_t (was: struct tm -> time_t converter wanted) Message-ID: <27432@tut.cis.ohio-state.edu> Date: 14 Nov 88 16:51:17 GMT References: <442@grand.UUCP> <8700@smoke.BRL.MIL> <6964@cdis-1.uucp> <9816@haddock.ima.isc.com> <1988Oct22.230215.19411@utzoo.uucp> <26582@ucbvax.BERKELEY.EDU> <8810281846.AA20611@champlain.dgp.toronto.edu> <7917@bloom-beacon.MIT.EDU> Sender: news@tut.cis.ohio-state.edu Organization: The Ohio State University, IRCC/CIS Joint Computing Laboratory Lines: 31 In article <7917@bloom-beacon.MIT.EDU> scs@adam.pika.mit.edu (Steve Summit) writes: >In article <8810281846.AA20611@champlain.dgp.toronto.edu> flaps@dgp.toronto.edu (Alan J Rosenthal) writes: >> >>So any zero-date in the past is ok, because a file need not be able to have >>a timestamp predating the writing of the operating system it is available on. > >... I'd suggest otherwise. I pay a lot of attention to file modification >times, and I often transfer files between different operating systems (Unix, >VMS, MS-DOS) while attempting to preserve modification times (using tar and >the like). This means that I have a problem if I take a file last modified >in 1979 to an MS-DOS system, because DOS's epoch is 1980. (The problem is >theoretically even worse when moving files from VMS, which has an epoch of >1865 or so.) Not much of a problem in practice, but it's something to think >about. (And, of course, it's insoluble.) Good point - this might be important or useful information. The epoch you're referring to is probably 0000 GMT 17-Nov-1858, the same as for pdp-10 monitors with which I am familiar. The date was chosen by someone at The Smithsonian Institution if I recall correctly; I no longer remember the significance, but it was probably when the Gregorian calendar was adopted by some official group or major government. Our local EXEC has been modified to change the write date when a file is copied so as to avoid the file migration policy. This annoys me so much that I have another version of the EXEC without this modification for my use. (In fact, I have several EXECs with and without various nasty "features".) -=- -- Lum Johnson lum@osu-20.ircc.ohio-state.edu lum@tut.cis.ohio-state.edu "You got it kid -- the large print giveth and the small print taketh away." -------