format toString of time