In order to be able to fully test this kind of code, my company uses a set_test_datetime function that sets up the database to think it is that day, and also sets the time in the libraries.
In this way, we can test for any date and any time, no matter when it is right now.
In reply to Re: Testing and database date functions
by Tuppence
in thread Testing and database date functions
by relax99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |