% expr [clock scan "20040101T120000"] - [clock scan "20031231T120000"] 86400
gives you the correct number of seconds between these timestamps.