LWN.net Logo

Filesystem timestamps

Filesystem timestamps

Posted Oct 20, 2011 18:15 UTC (Thu) by magila (subscriber, #49627)
In reply to: Filesystem timestamps by garloff
Parent article: Time zone database attacked but finds a new home

If you want to be really pedantic the one sane way to store timestamps would be using TAI. Using a discontinuous time standard (UTC) as the system time has been, and will continue to be, a major source of ugliness.


(Log in to post comments)

Filesystem timestamps

Posted Oct 21, 2011 0:13 UTC (Fri) by giraffedata (subscriber, #1954) [Link]

If you want to be really pedantic the one sane way to store timestamps would be using TAI. Using a discontinuous time standard (UTC) as the system time has been, and will continue to be, a major source of ugliness.
A continuous time standard (TAI) would be ugly in other ways, and I believe on balance more ugly.

If we could get people to stop living their lives by sunrise and sunset and abandon the discontinuous time scale they use in all other aspects of their lives, then TAI would be a good clean fit for timekeeping in computers.

Incidentally, Unix doesn't use UTC except to specify the epoch.

(For those who don't know what we're talking about: UTC expresses time in year, month, day, etc. and every so often, with no pattern, a minute has 61 seconds so that all years start with the earth oriented the same way toward the sun. TAI is a simple ever-increasing seconds value, so there's no sun alignment issue and no place to insert leap-anything.

The Unix time standard is like TAI in that it's just a seconds value, but like UTC in that it just stops incrementing for a second every time a UTC minute has a 61st second. The point of that is to make it easier to convert to UTC, and do time arithmetic.)

Filesystem timestamps

Posted Oct 21, 2011 2:39 UTC (Fri) by njs (guest, #40338) [Link]

Or maybe UTC will become TAI... [1]

Though the argument I find most compelling is that everyone should switch to TAI for internal timekeeping, and then make UTC a new timezone (with a very small offset) -- the way leap seconds get added is almost exactly like the way that political entities are always rearranging DST rules, and can use the same mechanism.[2]

[1] http://www.ucolick.org/~sla/leapsecs/onlinebib.html
[2] http://www.ucolick.org/~sla/leapsecs/right+gps.html

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds