Simplified code for converting between different time standards. Set the mod4,32,40 epoch values to the start of their accumulation period.