On Wed, Jul 18, 2007 at 13:57:13 -0700, Junio C Hamano wrote:I can attempt a brief explanation if anyone is (still) interested. Leap seconds are added iregularly, because Earth rotation is slightly irregular. Therefore some time calculations require lookup into a table of leap seconds: - If you include leap seconds in the timer, converting to date+time does, while time difference does not. This is what the right/ timezones use. - If you exclude leap seconds from the timer, time difference does, but converting to date+time does not. This is what the normal timezones use. Obviously, the two approaches don't play well together. POSIX chose the later, likely because it's much more common to want to know date+time for some moment, than to calculate several year long time interval with second precision (because so far there have been at most 2 seconds difference per year). Note, that the former approach allows you to talk about time 65936023 secon= ds =66rom now, but not what date and time it will be, while the later allows y= ou to talk about 2437-11-05 16:12:05, but not how many seconds are left until than. --=20 Jan 'Bulb' Hudec <bulb@ucw.cz>
| Linus Torvalds | Linux 2.6.27-rc8 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Linus Torvalds | Linux 2.6.20-rc6 |
| Mike Snitzer | Re: Distributed storage. |
git: | |
| Gerrit Renker | [PATCH 03/37] dccp: List management for new feature negotiation |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
| Herbert Xu | Re: Kernel oops with 2.6.26, padlock and ipsec: probably problem with fpu state ch... |
