http://www.perlmonks.org?node_id=68955


in reply to New time-related function for Perl

What exactly does this do? If time() returns the number of seconds since the epoch, then 0 would be 0 seconds since the epoch and you can use the normal time functions with time 0 to figure out all the information you need about the epoch, so what exactly does epochtime do?

Replies are listed 'Best First'.
(tye)Re: New time-related function for Perl
by tye (Sage) on Apr 02, 2001 at 21:09 UTC
    +PP(pp_epochtime) +{ + dSP; + EXTEND(SP, 1); + PUSHs(sv_2mortal(newSViv(0))); + RETURN; +}

    Yes, this just returns 0. It appears to be an April Fool's joke that many (including the producers of "This week on p5p") didn't get (probably because it wasn't funny).

            - tye (but my friends call me "Tye")
      Well, I thought it was funny, especially because the patch included updates to the documentation and the test suite!

      A joke doesn't have to be obvious to be funny.

      Says tye:
      many (including the producers of "This week on p5p") didn't get
      Simon did indeed get it. Don't give yourself so much credit.