Date range and refactoring of date testing programs: moved to datetime
package