Volume Delay Function Python Format Datetime