add time format method