Voting

: max(nine, five)?
(Example: nine)

The Note You're Voting On

lsloan-php dot net at umich dot edu
9 years ago
Although PHP refers to periods of time as "intervals", ISO 8601 refers to them as "durations". In ISO 8601, "intervals" are something else.

While ISO 8601 allows fractions for all parts of a duration (e.g., "P0.5Y"), DateInterval does not. Use caution when calculating durations. If the duration has a fractional part, it may be lost when storing it in a DateInterval object.

<< Back to user notes page

To Top