move time-related functions from `Main.hs` to a new `Time` module for better organization and code separation