mostly modifications to time-functions.r (helper functions for chron)