small util fot time processing