scheduler.py: added helper datetime functions to facilitate usage of external time series analysis libraries.