change time to epoch