> If $date1 and $date2 contain specific dates and times.  Then the
> conversion to $duration = ($date1-$date) has chosen to lose the
> information I was seeking during the instantiation.  It was
> possibly to know the number of seconds (without ambiguity) before
> the internal representation was chosen.

No, it didn't lose anything.
You are only looking for an illusion there.
Our concept of a constant 24 hour, 1440 minute, 86400 second day is
simply a lie to make our daily routines easier.

We are actually constantly introduced with 86401 second days, 25 hour
days and 23 hour days. DateTime correctly computes those as well, and
DT::Duration is the way it is because of this.

But yes, that's not terribly well documented.
(I personally wouldn't have really grasped it until I dived into the
code to write my own calendar module)

--d

Reply via email to