Use timelocal and generate the time and then do the
calculations for days.
Something like:
# format for timelocal is
# seconds, minutes, hour, day of mohth, month
minus 1 and year (best format number of years since 1900)
# Following is just what you would do and you wou
[EMAIL PROTECTED] <> wrote:
: Gurus,
:
: A simple one: what's the best, quickest, way to get the difference
: between two dates. They're both in the same format: "MMDD". One
: of them gets ginned up into that format starting from a call to time
: (that is, $x = time; stuff happens to $x; $y en
[EMAIL PROTECTED] wrote:
>
> Gurus,
>
> A simple one: what's the best, quickest, way to get the difference
> between two dates. They're both in the same format: "MMDD". One of
> them gets ginned up into that format starting from a call to time (that
> is, $x = time; stuff happens to $x; $y e
Gurus,
Sorry, don't know my own code!
A simple one: what's the best, quickest, way to get the difference between two dates. They're both in the same format: "MMDD". One of them gets ginned up into that format starting from a call to localtime (that is, @x = localtime; stuff happens to @x; $y
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 31 October 2005 17:08
To: activeperl@listserv.ActiveState.com
Subject: Comparing dates
> Gurus,
> A simple one: what's the best, quickest, way to get the difference
between two dates. They're
Gurus,
A simple one: what's the best, quickest, way to get the difference between two dates. They're both in the same format: "MMDD". One of them gets ginned up into that format starting from a call to time (that is, $x = time; stuff happens to $x; $y ends up "20051031";), the other's read in