added time format helper