in reply to Re: Time-Based Conditionals?
in thread Time-Based Conditionals?

This is assuming that I'm using CGI, and printing out some html. I'm trying to figure out a way to have it print out code on a certain day, for example October 12th. How would I first check to see what day/time it was, and then do something based on the code? I'm fairly certain that doing something would just be a simply matter of putting something inside the conditional, but..?

Replies are listed 'Best First'.
Re^3: Time-Based Conditionals?
by MidLifeXis (Monsignor) on Aug 27, 2004 at 18:05 UTC

    See localtime() or gmtime(). You could compare the results of the returned array to some parameters.

    --MidLifeXis

      After asking around, I have found that localtime() will suit my methods perfectly. Thanks for the help though.

      Spidy