Hi,
Danke!
6015 scheint immer dann herauszukommen, wenn der Unterschied per ->diff() berechnet wird.
Also wohl ein Bug in der Win-Version.
Erzeugt man ein DateInterval-Objekt mit ::createFromDateString() ist der Wert für ->days immer 0.
Die Erklärung dafür,
Days is indeed not set when creating a DateInterval using the constructor. A complication with this is that it is impossible to determine the number of days when months or years are specified, since these vary in length.
ist ja nachvollziehbar.
MfG ChrisB
--
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]