long idatetimeserial(int timeframe,int shift)
To me the easiest technique for working with date and time
calculations on the PC is to implement DateSerial and TimeSerial.
The following DateSerial counts the number of days since 1-1-0001. A
TimeSerial counts the number of seconds since 00:00:00.