in reply to Testing and database date functions
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Testing and database date functions
by relax99 (Monk) on Dec 09, 2004 at 19:56 UTC |