- Oct
- 364
- 17
Is there a way to "game" date and time internal variables for development and test purposes?
What I'm asking about is for development/test purposes being able to tell TCC "return this date/time" in the internal variables. So, for instance, on 8/17 tell it to have %_date return 9/1/2018 or 1/2/2019 so I can test "month changeover" or "year changeover" code without changing the PC's system date and without writing loads of functions to substitute for the TCC internal variables. So _day, _imonth, etc., all would use the "test" date and time rather than the actual system date/time.
What I'm asking about is for development/test purposes being able to tell TCC "return this date/time" in the internal variables. So, for instance, on 8/17 tell it to have %_date return 9/1/2018 or 1/2/2019 so I can test "month changeover" or "year changeover" code without changing the PC's system date and without writing loads of functions to substitute for the TCC internal variables. So _day, _imonth, etc., all would use the "test" date and time rather than the actual system date/time.