Class Carbon\CarbonInterval

extends DateInterval
implements CarbonConverterInterface
uses IntervalRounding, IntervalStep, MagicParameter, Mixin, Options, ToStringFormat

A simple API extension for DateInterval. The implementation provides helpers to handle weeks but only days are saved. Weeks are calculated based on the total days of the current instance.

Methods
Methods inherited from DateInterval
format(), __serialize(), __unserialize(), __wakeup(), __set_state()
Methods used from Carbon\Traits\IntervalStep
getStep(), setStep(), convertDate()
Methods used from Carbon\Traits\Options
useStrictMode(), isStrictModeEnabled(), useMonthsOverflow(), resetMonthsOverflow(), shouldOverflowMonths(), useYearsOverflow(), resetYearsOverflow(), shouldOverflowYears(), settings(), getSettings(), __debugInfo(), shiftTimezone()
Methods used from Carbon\Traits\ToStringFormat
resetToStringFormat(), setToStringFormat()
Constants
Properties
Properties used from Carbon\Traits\Options
$PHPIntSize