add time helper functions