in reply to date arithmetic

You should be able to use time with either gmtime or localtime, as you prefer. Either a simple if clause, or a lookup table, should suffice.

-QM
--
Quantum Mechanics: The dreams stuff is made of