Use date calculation directly

(Sigh at unix time APIs)