in reply to Re: Date Manipulation
in thread Date Manipulation
If you disregard timezones, my favourite method of calculating yesterday's date is the following:
my $yesterday = localtime; sleep( 86400 ); print "Yesterdays date is $yesterday\n";
People might complain that the runtime is a bit too long, but I'm sure one can reduce the runtime by rewriting this program in C, Haskell or Perl6.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Date Manipulation
by pajout (Curate) on Dec 18, 2006 at 11:39 UTC |