Question: how to find the difference between two dates in unix?
Answer: There's a solution that almost works: use the %s date format of GNU date, which prints the number of seconds since 1970-01-01 00:00. These can be subtracted to find the time difference between two dates. Because of daylight savings time, there are only 23 hours between those times.