Leap Seconds Puzzle Answer

The question was, "LeapSeconds can cause a day to be more or less than 24*60*60 seconds long. What else can?"

Please put your answers here or so:

That was the answer I had in mind when I asked the question. Midnight to midnight, the day we change to daylight savings time is twenty-three hours long; the day we change back is twenty-five hours long. (This caused a serious problem in logging software on a project I worked on.) -- PaulChisholm

I HadThisPattern recently as well (see http://radio.weblogs.com/0122027/2003/10/17.html#a91 ) It's funny, every time I see something like secondsInDay = 24*60*60, I always used think to myself "what about leap seconds?" but rarely about the daylight savings time shift. (This is an advantage of working with a library that has a robust representation of time, to increment a date by one day, do something like date.addDay(1) or date.add(1,"DAY") or whatever). -- RodWaldhoff?

These other answers are like the old puzzle/joke about using a barometer to measure the height of a building:


EditText of this page (last edited July 3, 2008) or FindPage with title or text search