Take care with this because time/(24*60*60)%2 needn't switch at midnight, but some other time of the day.
In reply to Re: odd or even day? by ambrus in thread odd or even day? by jondkent