Joseph Conrad wrote: > # date > Sun Mar 14 18:47:12 MDT 2010 > > # date -d "01:59 2010-03-14" > Sun Mar 14 01:59:00 MST 2010
Correct. > # date -d "02:00 2010-03-14" > date: invalid date `02:00 2010-03-14' > > # date -d "02:59 2010-03-14" > date: invalid date `02:59 2010-03-14' Correct, depending upon your timezone. In the US Mountain timezone Daylight Savings Time went into effect by act of Congress due to the passage of the Energy Policy Act in 2005 and those times do not exist. They are invalid. Please see the FAQ for more information. http://www.gnu.org/software/coreutils/faq/#The-date-command-is-not-working-right_002e http://en.wikipedia.org/wiki/Energy_Policy_Act_of_2005#Change_to_daylight_saving_time You might consider using UTC to avoid DST issues. Bob
