develooper Front page | perl.perl5.porters | Postings from February 2009

Re: hodie

Thread Previous | Thread Next
February 12, 2009 01:50
Re: hodie
Message ID:
On Wed, Feb 11, 2009 at 05:38:12PM -0700, Tom Christiansen wrote:
> This is really kinda fun.  Or at least, *I* think so.
> As some of you know, something very, very special is about to occur, and
> it's going to happen just 1½ minutes shy of 2 hours past my coming birthday.
> The closeness of these 2 events I have long foreseen, and anticipated.
> Here's what it is: your computer's internal time (a.k.a. "the epoch",
> measured in number of seconds since 1970) hits the unique figure of
> 1234567890, thus lining up all the digits the same way they're lined 
> up at the top of your keyboard.
> Isn't that *special*? :-)

It is.

Yesterday at $WORK, I checked in a file containing tests, that has
in its preamble:

  my $EPOCH  = freeze_time (1234567890);  # Fri Feb 13 23:31:30 2009

Might as well pick a 'cute' value if your tests are going to fake a 
known point in time.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About