Class Carbon\CarbonInterval

extends DateInterval
implements CarbonConverterInterface
uses LocalFactory, 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
__serialize(), __wakeup(),
Methods used from Carbon\Traits\LocalFactory
getClock()
Methods used from Carbon\Traits\IntervalRounding
callRoundMethod(), roundWith()
Methods used from Carbon\Traits\IntervalStep
getStep(), setStep(), convertDate()
Methods used from Carbon\Traits\Mixin
bindMacroContext(), context(),
Methods used from Carbon\Traits\Options
settings(), getSettings(), __debugInfo(), isLocalStrictModeEnabled(), addExtraDebugInfos(),
Methods used from Carbon\Traits\ToStringFormat
resetToStringFormat(), setToStringFormat()
Constants
Properties
Properties used from Carbon\Traits\IntervalStep
$step
Properties used from Carbon\Traits\Mixin
$macroContextStack
Properties used from Carbon\Traits\Options
$localMonthsOverflow, $localYearsOverflow, $localStrictModeEnabled, $localHumanDiffOptions, $localToStringFormat, $localSerializer, $localMacros, $localGenericMacros, $localFormatFunction