deal with time formate