From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,231b76683efad4b4 X-Google-Attributes: gidfee84,public From: mark@helios.physics.utoronto.ca (Mark Bartelt) Subject: Re: Latest on Date/Time patches - Leap Year Date: 1996/03/05 Message-ID: #1/1 X-Deja-AN: 142032613 sender: news@info.physics.utoronto.ca (System Administrator) references: <4h292b$jds@netnews.alf.dec.com> organization: Canadian Institute for Theoretical Astrophysics reply-to: mark@cita.utoronto.ca newsgroups: comp.unix.osf.osf1 [ Jim Wright ] | Has anyone actually seen this problem? What really | causes it? Can I expect to avoid any effects if I don't alter the time? | Right now, I'm glad I didn't mess with the system. A disk on one of our systems (DU 3.2c) had to be replaced on Monday. With both the new disk and the old disk installed, I did the standard ... newfs dump | restore ... sort of thing to copy filesystems from the old drive (still alive, but clearly on its last legs) to the new one. I was surprised to see messages from dump, after it had been running only a few minutes, saying things like dump: 16.82% done -- finished in 741:52 (The numbers are made up, but are close to what they actually were.) So at some level, at least, there was some confusion. I do recall that when the system came up (after being taken down to hook up the new drive) the date was off by a day. I was in a rush to get the system back on the air, so I didn't poke around as I'd have liked, to characterize the problem(s) that one sees without the patch. I just installed the patch, and brought the system back up. However, I do have a question, for whichever Digit(s) might care to answer. A friend asked ... Hmmm. On reading the patch description again, I am even more puzzled. I can understand changing the date command, but why does the kernel care about leap years? Indeed, why? Traditionally, the kernel kept track only of GMT (or UCT, or whatever it's called these days), relative to the beginning of The Epoch, and anything else was handled by various library routines. Has Digital UNIX deviated from this (sensible) way of doing things? If so, why? What on earth goes on in the kernel's clock.o, anyway? I see that it has entry points named "cvt_sec_to_tm()" and "cvt_tm_to_sec()". Does this imply that the kernel now deals with "struct tm" stuff? Gack. Mark Bartelt 416/978-5619 Canadian Institute for mark@cita.toronto.edu Theoretical Astrophysics mark@cita.utoronto.ca "Clothes not busy being worn are busy drying." -- Dylan, on laundry day [ singing "It's all right, ma (I'm only bleaching)" ]