doc-en icon indicating copy to clipboard operation
doc-en copied to clipboard

Update DateInterval for better understanding of Properties

Open MicahBCode opened this issue 1 year ago • 0 comments

From manual page: https://php.net/class.dateinterval


Please add the value ranges to the properties where applicable. In my case the reading of the documentation caused a bug as I was comparing the dates "2023-12-31" with "2024-01-31" which caused the d-Property to become 0 instead of 31 (what I expected). When investigating the issue I only realized that I should use the days-Property instead.

Adding the value ranges helps to realize that on the first sight.

MicahBCode avatar Jan 31 '24 14:01 MicahBCode