moved epoch time functions to a separate file