This is not a good way to determine a "day" - does not account for DST or leap seconds and other time anomalies