added functions that format the time and the timescale