in reply to Re: add to localtime?
in thread add to localtime?

For some reason this code: localtime()+(param("saleend") * 24 * 60 * 60) is putting the output of 604800 which is the param("saleend" * 24 * 60 * 60) (saleend is equal to 7).

Why would localtime() not have a value? Is it NOT a built in Perl function?

thx,
Richard

Replies are listed 'Best First'.
Re: Re: Re: add to localtime?
by perlplexer (Hermit) on Apr 26, 2003 at 22:44 UTC
    localtime() returns either an array of numbers representing seconds, minutes, hours, etc., or a string that represents date/time in a human readable form.
    What you need there is time(), not localtime().

    --perlplexer
      Excellent, time() worked! Thank you!!!

      thx,
      Richard