time converting util class