Methods |
public
|
getTimezone(): CarbonTimeZone
Get the TimeZone associated with the Carbon instance (as CarbonTimeZone).
Get the TimeZone associated with the Carbon instance (as CarbonTimeZone).
|
#
|
public
|
copy(): static
Get a copy of the instance.
Get a copy of the instance.
|
#
|
public
|
clone(): static
|
#
|
public
|
avoidMutation(): static
Clone the current instance if it's mutable.
Clone the current instance if it's mutable.
This method is convenient to ensure you don't mutate the initial object
but avoid to make a useless copy of it if it's already immutable.
|
#
|
public
|
nowWithSameTz(): static
Returns a present instance in the same timezone.
Returns a present instance in the same timezone.
|
#
|
public
|
carbonize(Carbon|CarbonPeriod|CarbonInterval|DateInterval|DatePeriod|DateTimeInterface|string|null $date = null): static
Return the Carbon instance passed through, a now instance in the same timezone
if null given or parse the input if…
Return the Carbon instance passed through, a now instance in the same timezone
if null given or parse the input if string given.
|
#
|
public
|
__get(string $name): string|int|bool|DateTimeZone|null
Get a part of the Carbon object
Get a part of the Carbon object
Throws
|
#
|
public
|
get(string $name): string|int|bool|DateTimeZone|null
Get a part of the Carbon object
Get a part of the Carbon object
Throws
|
#
|
public
|
__isset(string $name): bool
Check if an attribute exists on the object
Check if an attribute exists on the object
|
#
|
public
|
__set(string $name, string|int|DateTimeZone $value): void
Set a part of the Carbon object
Set a part of the Carbon object
Throws
|
#
|
public
|
set(string|array $name, string|int|DateTimeZone $value = null): $this
Set a part of the Carbon object
Set a part of the Carbon object
Throws
|
#
|
public
|
getTranslatedDayName(string|null $context = null, string $keySuffix = '', string|null $defaultValue = null): string
Get the translation of the current week day name (with context for languages with multiple forms).
Get the translation of the current week day name (with context for languages with multiple forms).
Parameters
$context |
whole format string
|
$keySuffix |
"", "_short" or "_min"
|
$defaultValue |
default value if translation missing
|
|
#
|
public
|
getTranslatedShortDayName(string|null $context = null): string
Get the translation of the current short week day name (with context for languages with multiple forms).
Get the translation of the current short week day name (with context for languages with multiple forms).
Parameters
$context |
whole format string
|
|
#
|
public
|
getTranslatedMinDayName(string|null $context = null): string
Get the translation of the current abbreviated week day name (with context for languages with multiple forms).
Get the translation of the current abbreviated week day name (with context for languages with multiple forms).
Parameters
$context |
whole format string
|
|
#
|
public
|
getTranslatedMonthName(string|null $context = null, string $keySuffix = '', string|null $defaultValue = null): string
Get the translation of the current month day name (with context for languages with multiple forms).
Get the translation of the current month day name (with context for languages with multiple forms).
Parameters
$context |
whole format string
|
$keySuffix |
"" or "_short"
|
$defaultValue |
default value if translation missing
|
|
#
|
public
|
getTranslatedShortMonthName(string|null $context = null): string
Get the translation of the current short month day name (with context for languages with multiple forms).
Get the translation of the current short month day name (with context for languages with multiple forms).
Parameters
$context |
whole format string
|
|
#
|
public
|
dayOfYear(int|null $value = null): static|int
Get/set the day of year.
Parameters
$value |
new value for day of year if using as setter.
|
|
#
|
public
|
weekday(int|null $value = null): static|int
Get/set the weekday from 0 (Sunday) to 6 (Saturday).
Get/set the weekday from 0 (Sunday) to 6 (Saturday).
Parameters
$value |
new value for weekday if using as setter.
|
|
#
|
public
|
isoWeekday(int|null $value = null): static|int
Get/set the ISO weekday from 1 (Monday) to 7 (Sunday).
Get/set the ISO weekday from 1 (Monday) to 7 (Sunday).
Parameters
$value |
new value for weekday if using as setter.
|
|
#
|
public
|
getDaysFromStartOfWeek(int|null $weekStartsAt = null): int
Return the number of days since the start of the week (using the current locale or the first parameter
if explicitly…
Return the number of days since the start of the week (using the current locale or the first parameter
if explicitly given).
Parameters
$weekStartsAt |
optional start allow you to specify the day of week to use to start the week,
if not provided, start of week is inferred from the locale
(Sunday for en_US, Monday for de_DE, etc.)
|
|
#
|
public
|
setDaysFromStartOfWeek(int $numberOfDays, int|null $weekStartsAt = null): static
Set the day (keeping the current time) to the start of the week + the number of days passed as the first
parameter.…
Set the day (keeping the current time) to the start of the week + the number of days passed as the first
parameter. First day of week is driven by the locale unless explicitly set with the second parameter.
Parameters
$numberOfDays |
number of days to add after the start of the current week
|
$weekStartsAt |
optional start allow you to specify the day of week to use to start the week,
if not provided, start of week is inferred from the locale
(Sunday for en_US, Monday for de_DE, etc.)
|
|
#
|
public
|
setUnitNoOverflow(string $valueUnit, int $value, string $overflowUnit): static
Set any unit to a new value without overflowing current other unit given.
Set any unit to a new value without overflowing current other unit given.
Parameters
$valueUnit |
unit name to modify
|
$value |
new value for the input unit
|
$overflowUnit |
unit name to not overflow
|
|
#
|
public
|
addUnitNoOverflow(string $valueUnit, int $value, string $overflowUnit): static
Add any unit to a new value without overflowing current other unit given.
Add any unit to a new value without overflowing current other unit given.
Parameters
$valueUnit |
unit name to modify
|
$value |
amount to add to the input unit
|
$overflowUnit |
unit name to not overflow
|
|
#
|
public
|
subUnitNoOverflow(string $valueUnit, int $value, string $overflowUnit): static
Subtract any unit to a new value without overflowing current other unit given.
Subtract any unit to a new value without overflowing current other unit given.
Parameters
$valueUnit |
unit name to modify
|
$value |
amount to subtract to the input unit
|
$overflowUnit |
unit name to not overflow
|
|
#
|
public
|
utcOffset(int|null $minuteOffset = null): int|static
Returns the minutes offset to UTC if no arguments passed, else set the timezone with given minutes shift passed.
Returns the minutes offset to UTC if no arguments passed, else set the timezone with given minutes shift passed.
|
#
|
public
|
setDate(int $year, int $month, int $day): static
Set the date with gregorian year, month and day numbers.
Set the date with gregorian year, month and day numbers.
|
#
|
public
|
setISODate(int $year, int $week, int $day = 1): static
Set a date according to the ISO 8601 standard - using weeks and day offsets rather than specific dates.
Set a date according to the ISO 8601 standard - using weeks and day offsets rather than specific dates.
|
#
|
public
|
setDateTime(int $year, int $month, int $day, int $hour, int $minute, int $second = 0, int $microseconds = 0): static
Set the date and time all together.
Set the date and time all together.
|
#
|
public
|
setTime(int $hour, int $minute, int $second = 0, int $microseconds = 0): static
Resets the current time of the DateTime object to a different time.
Resets the current time of the DateTime object to a different time.
|
#
|
public
|
setTimestamp(float|int|string $unixTimestamp): static
Set the instance's timestamp.
Set the instance's timestamp.
Timestamp input can be given as int, float or a string containing one or more numbers.
|
#
|
public
|
setTimeFromTimeString(string $time): static
Set the time by time string.
Set the time by time string.
|
#
|
public
|
timezone(DateTimeZone|string $value): static
|
#
|
public
|
tz(DateTimeZone|string $value = null): static|string
Set the timezone or returns the timezone name if no arguments passed.
Set the timezone or returns the timezone name if no arguments passed.
|
#
|
public
|
setTimezone(DateTimeZone|string $value): static
Set the instance's timezone from a string or object.
Set the instance's timezone from a string or object.
|
#
|
public
|
shiftTimezone(DateTimeZone|string $value): static
Set the instance's timezone from a string or object and add/subtract the offset difference.
Set the instance's timezone from a string or object and add/subtract the offset difference.
|
#
|
public
|
utc(): static
Set the instance's timezone to UTC.
Set the instance's timezone to UTC.
|
#
|
public
|
setDateFrom(Carbon|DateTimeInterface $date = null): static
Set the year, month, and date for this instance to that of the passed instance.
Set the year, month, and date for this instance to that of the passed instance.
Parameters
|
#
|
public
|
setTimeFrom(Carbon|DateTimeInterface $date = null): static
Set the hour, minute, second and microseconds for this instance to that of the passed instance.
Set the hour, minute, second and microseconds for this instance to that of the passed instance.
Parameters
|
#
|
public
|
setDateTimeFrom(Carbon|DateTimeInterface $date = null): static
Set the date and time for this instance to that of the passed instance.
Set the date and time for this instance to that of the passed instance.
|
#
|
public
static
|
getDays(): array
Get the days of the week
|
#
|
public
static
|
getWeekStartsAt(): int
Get the first day of week
Get the first day of week
|
#
|
public
static
|
setWeekStartsAt(int|string $day): void
Deprecated
To avoid conflict between different third-party libraries, static setters should not be used.
Use $weekEndsAt optional parameter instead when using endOfWeek method. You can also use the
'first_day_of_week' locale setting to change the start of week according to current locale
selected and implicitly the end of week.
Parameters
$day |
week start day (or 'auto' to get the first day of week from Carbon::getLocale() culture).
|
|
#
|
public
static
|
getWeekEndsAt(): int
Get the last day of week
|
#
|
public
static
|
setWeekEndsAt(int|string $day): void
Deprecated
To avoid conflict between different third-party libraries, static setters should not be used.
Use $weekStartsAt optional parameter instead when using startOfWeek, floorWeek, ceilWeek
or roundWeek method. You can also use the 'first_day_of_week' locale setting to change the
start of week according to current locale selected and implicitly the end of week.
Parameters
$day |
week end day (or 'auto' to get the day before the first day of week
from Carbon::getLocale() culture).
|
|
#
|
public
static
|
getWeekendDays(): array
Get weekend days
|
#
|
public
static
|
setWeekendDays(array $days): void
Deprecated
To avoid conflict between different third-party libraries, static setters should not be used.
You should rather consider week-end is always saturday and sunday, and if you have some custom
week-end days to handle, give to those days an other name and create a macro for them:
|
#
|
public
static
|
hasRelativeKeywords(string $time): bool
Determine if a time string will produce a relative date.
Determine if a time string will produce a relative date.
Returns
true if time match a relative date, false if absolute or invalid time string
|
#
|
public
static
|
setUtf8(bool $utf8)
Deprecated
To avoid conflict between different third-party libraries, static setters should not be used.
You should rather use UTF-8 language packages on every machine.
|
#
|
public
|
formatLocalized(string $format): string
Format the instance with the current locale. You can set the current
locale using setlocale() https://php.net…
Deprecated
It uses OS language package and strftime() which is deprecated since PHP 8.1.
Use ->isoFormat() instead.
Deprecated since 2.55.0
|
#
|
public
|
getIsoFormats(string|null $locale = null): array
Returns list of locale formats for ISO formatting.
Returns list of locale formats for ISO formatting.
Parameters
$locale |
current locale used if null
|
|
#
|
public
|
getCalendarFormats(string|null $locale = null): array
Returns list of calendar formats for ISO formatting.
Returns list of calendar formats for ISO formatting.
Parameters
$locale |
current locale used if null
|
|
#
|
public
static
|
getIsoUnits(): array
Returns list of locale units for ISO formatting.
Returns list of locale units for ISO formatting.
|
#
|
public
|
getPaddedUnit(string $unit, int $length = 2, string $padString = '0', int $padType = STR_PAD_LEFT): string
Returns a unit of the instance padded with 0 by default or any other string if specified.
Returns a unit of the instance padded with 0 by default or any other string if specified.
Parameters
$unit |
Carbon unit name
|
$length |
Length of the output (2 by default)
|
$padString |
String to use for padding ("0" by default)
|
$padType |
Side(s) to pad (STR_PAD_LEFT by default)
|
|
#
|
public
|
ordinal(string $key, string|null $period = null): string
Return a property with its ordinal.
Return a property with its ordinal.
|
#
|
public
|
meridiem(bool $isLower = false): string
Return the meridiem of the current time in the current locale.
Return the meridiem of the current time in the current locale.
Parameters
$isLower |
if true, returns lowercase variant if available in the current locale.
|
|
#
|
public
|
getAltNumber(string $key): string
Returns the alternative number for a given date property if available in the current locale.
Returns the alternative number for a given date property if available in the current locale.
Parameters
|
#
|
public
|
isoFormat(string $format, string|null $originalFormat = null): string
Format in the current language using ISO replacement patterns.
Format in the current language using ISO replacement patterns.
Parameters
$originalFormat |
provide context if a chunk has been passed alone
|
|
#
|
public
static
|
getFormatsToIsoReplacements(): array
List of replacements from date() format to isoFormat().
List of replacements from date() format to isoFormat().
|
#
|
public
|
translatedFormat(string $format): string
Format as ->format() do (using date replacements patterns from https://php.net/manual/en/function.date.php)
but…
|
#
|
public
|
getOffsetString(string $separator = ':'): string
Returns the offset hour and minute formatted with +/- and a given separator (":" by default).
For example, if the time…
Returns the offset hour and minute formatted with +/- and a given separator (":" by default).
For example, if the time zone is 9 hours 30 minutes, you'll get "+09:30", with "@@" as first
argument, "+09@@30", with "" as first argument, "+0930". Negative offset will return something
like "-12:00".
Parameters
$separator |
string to place between hours and minutes (":" by default)
|
|
#
|
public
static
|
__callStatic(string $method, array $parameters): mixed
Dynamically handle calls to the class.
Dynamically handle calls to the class.
Parameters
$method |
magic method name called
|
$parameters |
parameters list
|
Throws
|
#
|
public
|
setUnit(string $unit, int $value = null): static
Set specified unit to new given value.
Set specified unit to new given value.
Parameters
$unit |
year, month, day, hour, minute, second or microsecond
|
$value |
new value for given unit
|
|
#
|
public
static
|
singularUnit(string $unit): string
Returns standardized singular of a given singular/plural unit name (in English).
Returns standardized singular of a given singular/plural unit name (in English).
|
#
|
public
static
|
pluralUnit(string $unit): string
Returns standardized plural of a given singular/plural unit name (in English).
Returns standardized plural of a given singular/plural unit name (in English).
|
#
|
public
|
__call(string $method, array $parameters): mixed
Dynamically handle calls to the class.
Dynamically handle calls to the class.
Parameters
$method |
magic method name called
|
$parameters |
parameters list
|
Throws
|
#
|
public
|
isUtc(): bool
Check if the current instance has UTC timezone. (Both isUtc and isUTC cases are valid.)
Check if the current instance has UTC timezone. (Both isUtc and isUTC cases are valid.)
|
#
|
public
|
isLocal(): bool
Check if the current instance has non-UTC timezone.
Check if the current instance has non-UTC timezone.
|
#
|
public
|
isValid(): bool
Check if the current instance is a valid date.
Check if the current instance is a valid date.
|
#
|
public
|
isDST(): bool
Check if the current instance is in a daylight saving time.
Check if the current instance is in a daylight saving time.
|
#
|
public
|
isSunday(): bool
Checks if the instance day is sunday.
Checks if the instance day is sunday.
|
#
|
public
|
isMonday(): bool
Checks if the instance day is monday.
Checks if the instance day is monday.
|
#
|
public
|
isTuesday(): bool
Checks if the instance day is tuesday.
Checks if the instance day is tuesday.
|
#
|
public
|
isWednesday(): bool
Checks if the instance day is wednesday.
Checks if the instance day is wednesday.
|
#
|
public
|
isThursday(): bool
Checks if the instance day is thursday.
Checks if the instance day is thursday.
|
#
|
public
|
isFriday(): bool
Checks if the instance day is friday.
Checks if the instance day is friday.
|
#
|
public
|
isSaturday(): bool
Checks if the instance day is saturday.
Checks if the instance day is saturday.
|
#
|
public
|
isSameYear(Carbon|DateTimeInterface|string|null $date = null): bool
Checks if the given date is in the same year as the instance. If null passed, compare to now (with the same timezone).
Checks if the given date is in the same year as the instance. If null passed, compare to now (with the same timezone).
|
#
|
public
|
isCurrentYear(): bool
Checks if the instance is in the same year as the current moment.
Checks if the instance is in the same year as the current moment.
|
#
|
public
|
isNextYear(): bool
Checks if the instance is in the same year as the current moment next year.
Checks if the instance is in the same year as the current moment next year.
|
#
|
public
|
isLastYear(): bool
Checks if the instance is in the same year as the current moment last year.
Checks if the instance is in the same year as the current moment last year.
|
#
|
public
|
isSameWeek(Carbon|DateTimeInterface|string|null $date = null): bool
Checks if the given date is in the same week as the instance. If null passed, compare to now (with the same timezone).
Checks if the given date is in the same week as the instance. If null passed, compare to now (with the same timezone).
|
#
|
public
|
isCurrentWeek(): bool
Checks if the instance is in the same week as the current moment.
Checks if the instance is in the same week as the current moment.
|
#
|
public
|
isNextWeek(): bool
Checks if the instance is in the same week as the current moment next week.
Checks if the instance is in the same week as the current moment next week.
|
#
|
public
|
isLastWeek(): bool
Checks if the instance is in the same week as the current moment last week.
Checks if the instance is in the same week as the current moment last week.
|
#
|
public
|
isSameDay(Carbon|DateTimeInterface|string|null $date = null): bool
Checks if the given date is in the same day as the instance. If null passed, compare to now (with the same timezone).
Checks if the given date is in the same day as the instance. If null passed, compare to now (with the same timezone).
|
#
|
public
|
isCurrentDay(): bool
Checks if the instance is in the same day as the current moment.
Checks if the instance is in the same day as the current moment.
|
#
|
public
|
isNextDay(): bool
Checks if the instance is in the same day as the current moment next day.
Checks if the instance is in the same day as the current moment next day.
|
#
|
public
|
isLastDay(): bool
Checks if the instance is in the same day as the current moment last day.
Checks if the instance is in the same day as the current moment last day.
|
#
|
public
|
isSameHour(Carbon|DateTimeInterface|string|null $date = null): bool
Checks if the given date is in the same hour as the instance. If null passed, compare to now (with the same timezone).
Checks if the given date is in the same hour as the instance. If null passed, compare to now (with the same timezone).
|
#
|
public
|
isCurrentHour(): bool
Checks if the instance is in the same hour as the current moment.
Checks if the instance is in the same hour as the current moment.
|
#
|
public
|
isNextHour(): bool
Checks if the instance is in the same hour as the current moment next hour.
Checks if the instance is in the same hour as the current moment next hour.
|
#
|
public
|
isLastHour(): bool
Checks if the instance is in the same hour as the current moment last hour.
Checks if the instance is in the same hour as the current moment last hour.
|
#
|
public
|
isSameMinute(Carbon|DateTimeInterface|string|null $date = null): bool
Checks if the given date is in the same minute as the instance. If null passed, compare to now (with the same timezone).
Checks if the given date is in the same minute as the instance. If null passed, compare to now (with the same timezone).
|
#
|
public
|
isCurrentMinute(): bool
Checks if the instance is in the same minute as the current moment.
Checks if the instance is in the same minute as the current moment.
|
#
|
public
|
isNextMinute(): bool
Checks if the instance is in the same minute as the current moment next minute.
Checks if the instance is in the same minute as the current moment next minute.
|
#
|
public
|
isLastMinute(): bool
Checks if the instance is in the same minute as the current moment last minute.
Checks if the instance is in the same minute as the current moment last minute.
|
#
|
public
|
isSameSecond(Carbon|DateTimeInterface|string|null $date = null): bool
Checks if the given date is in the same second as the instance. If null passed, compare to now (with the same timezone).
Checks if the given date is in the same second as the instance. If null passed, compare to now (with the same timezone).
|
#
|
public
|
isCurrentSecond(): bool
Checks if the instance is in the same second as the current moment.
Checks if the instance is in the same second as the current moment.
|
#
|
public
|
isNextSecond(): bool
Checks if the instance is in the same second as the current moment next second.
Checks if the instance is in the same second as the current moment next second.
|
#
|
public
|
isLastSecond(): bool
Checks if the instance is in the same second as the current moment last second.
Checks if the instance is in the same second as the current moment last second.
|
#
|
public
|
isSameMicro(Carbon|DateTimeInterface|string|null $date = null): bool
Checks if the given date is in the same microsecond as the instance. If null passed, compare to now (with the same…
Checks if the given date is in the same microsecond as the instance. If null passed, compare to now (with the same timezone).
|
#
|
public
|
isCurrentMicro(): bool
Checks if the instance is in the same microsecond as the current moment.
Checks if the instance is in the same microsecond as the current moment.
|
#
|
public
|
isNextMicro(): bool
Checks if the instance is in the same microsecond as the current moment next microsecond.
Checks if the instance is in the same microsecond as the current moment next microsecond.
|
#
|
public
|
isLastMicro(): bool
Checks if the instance is in the same microsecond as the current moment last microsecond.
Checks if the instance is in the same microsecond as the current moment last microsecond.
|
#
|
public
|
isSameMicrosecond(Carbon|DateTimeInterface|string|null $date = null): bool
Checks if the given date is in the same microsecond as the instance. If null passed, compare to now (with the same…
Checks if the given date is in the same microsecond as the instance. If null passed, compare to now (with the same timezone).
|
#
|
public
|
isCurrentMicrosecond(): bool
Checks if the instance is in the same microsecond as the current moment.
Checks if the instance is in the same microsecond as the current moment.
|
#
|
public
|
isNextMicrosecond(): bool
Checks if the instance is in the same microsecond as the current moment next microsecond.
Checks if the instance is in the same microsecond as the current moment next microsecond.
|
#
|
public
|
isLastMicrosecond(): bool
Checks if the instance is in the same microsecond as the current moment last microsecond.
Checks if the instance is in the same microsecond as the current moment last microsecond.
|
#
|
public
|
isCurrentMonth(): bool
Checks if the instance is in the same month as the current moment.
Checks if the instance is in the same month as the current moment.
|
#
|
public
|
isNextMonth(): bool
Checks if the instance is in the same month as the current moment next month.
Checks if the instance is in the same month as the current moment next month.
|
#
|
public
|
isLastMonth(): bool
Checks if the instance is in the same month as the current moment last month.
Checks if the instance is in the same month as the current moment last month.
|
#
|
public
|
isCurrentQuarter(): bool
Checks if the instance is in the same quarter as the current moment.
Checks if the instance is in the same quarter as the current moment.
|
#
|
public
|
isNextQuarter(): bool
Checks if the instance is in the same quarter as the current moment next quarter.
Checks if the instance is in the same quarter as the current moment next quarter.
|
#
|
public
|
isLastQuarter(): bool
Checks if the instance is in the same quarter as the current moment last quarter.
Checks if the instance is in the same quarter as the current moment last quarter.
|
#
|
public
|
isSameDecade(Carbon|DateTimeInterface|string|null $date = null): bool
Checks if the given date is in the same decade as the instance. If null passed, compare to now (with the same timezone).
Checks if the given date is in the same decade as the instance. If null passed, compare to now (with the same timezone).
|
#
|
public
|
isCurrentDecade(): bool
Checks if the instance is in the same decade as the current moment.
Checks if the instance is in the same decade as the current moment.
|
#
|
public
|
isNextDecade(): bool
Checks if the instance is in the same decade as the current moment next decade.
Checks if the instance is in the same decade as the current moment next decade.
|
#
|
public
|
isLastDecade(): bool
Checks if the instance is in the same decade as the current moment last decade.
Checks if the instance is in the same decade as the current moment last decade.
|
#
|
public
|
isSameCentury(Carbon|DateTimeInterface|string|null $date = null): bool
Checks if the given date is in the same century as the instance. If null passed, compare to now (with the same timezone…
Checks if the given date is in the same century as the instance. If null passed, compare to now (with the same timezone).
|
#
|
public
|
isCurrentCentury(): bool
Checks if the instance is in the same century as the current moment.
Checks if the instance is in the same century as the current moment.
|
#
|
public
|
isNextCentury(): bool
Checks if the instance is in the same century as the current moment next century.
Checks if the instance is in the same century as the current moment next century.
|
#
|
public
|
isLastCentury(): bool
Checks if the instance is in the same century as the current moment last century.
Checks if the instance is in the same century as the current moment last century.
|
#
|
public
|
isSameMillennium(Carbon|DateTimeInterface|string|null $date = null): bool
Checks if the given date is in the same millennium as the instance. If null passed, compare to now (with the same…
Checks if the given date is in the same millennium as the instance. If null passed, compare to now (with the same timezone).
|
#
|
public
|
isCurrentMillennium(): bool
Checks if the instance is in the same millennium as the current moment.
Checks if the instance is in the same millennium as the current moment.
|
#
|
public
|
isNextMillennium(): bool
Checks if the instance is in the same millennium as the current moment next millennium.
Checks if the instance is in the same millennium as the current moment next millennium.
|
#
|
public
|
isLastMillennium(): bool
Checks if the instance is in the same millennium as the current moment last millennium.
Checks if the instance is in the same millennium as the current moment last millennium.
|
#
|
public
|
years(int $value): CarbonInterface
Set current instance year to the given value.
Set current instance year to the given value.
|
#
|
public
|
year(int $value): CarbonInterface
Set current instance year to the given value.
Set current instance year to the given value.
|
#
|
public
|
setYears(int $value): CarbonInterface
Set current instance year to the given value.
Set current instance year to the given value.
|
#
|
public
|
setYear(int $value): CarbonInterface
Set current instance year to the given value.
Set current instance year to the given value.
|
#
|
public
|
months(int $value): CarbonInterface
Set current instance month to the given value.
Set current instance month to the given value.
|
#
|
public
|
month(int $value): CarbonInterface
Set current instance month to the given value.
Set current instance month to the given value.
|
#
|
public
|
setMonths(int $value): CarbonInterface
Set current instance month to the given value.
Set current instance month to the given value.
|
#
|
public
|
setMonth(int $value): CarbonInterface
Set current instance month to the given value.
Set current instance month to the given value.
|
#
|
public
|
days(int $value): CarbonInterface
Set current instance day to the given value.
Set current instance day to the given value.
|
#
|
public
|
day(int $value): CarbonInterface
Set current instance day to the given value.
Set current instance day to the given value.
|
#
|
public
|
setDays(int $value): CarbonInterface
Set current instance day to the given value.
Set current instance day to the given value.
|
#
|
public
|
setDay(int $value): CarbonInterface
Set current instance day to the given value.
Set current instance day to the given value.
|
#
|
public
|
hours(int $value): CarbonInterface
Set current instance hour to the given value.
Set current instance hour to the given value.
|
#
|
public
|
hour(int $value): CarbonInterface
Set current instance hour to the given value.
Set current instance hour to the given value.
|
#
|
public
|
setHours(int $value): CarbonInterface
Set current instance hour to the given value.
Set current instance hour to the given value.
|
#
|
public
|
setHour(int $value): CarbonInterface
Set current instance hour to the given value.
Set current instance hour to the given value.
|
#
|
public
|
minutes(int $value): CarbonInterface
Set current instance minute to the given value.
Set current instance minute to the given value.
|
#
|
public
|
minute(int $value): CarbonInterface
Set current instance minute to the given value.
Set current instance minute to the given value.
|
#
|
public
|
setMinutes(int $value): CarbonInterface
Set current instance minute to the given value.
Set current instance minute to the given value.
|
#
|
public
|
setMinute(int $value): CarbonInterface
Set current instance minute to the given value.
Set current instance minute to the given value.
|
#
|
public
|
seconds(int $value): CarbonInterface
Set current instance second to the given value.
Set current instance second to the given value.
|
#
|
public
|
second(int $value): CarbonInterface
Set current instance second to the given value.
Set current instance second to the given value.
|
#
|
public
|
setSeconds(int $value): CarbonInterface
Set current instance second to the given value.
Set current instance second to the given value.
|
#
|
public
|
setSecond(int $value): CarbonInterface
Set current instance second to the given value.
Set current instance second to the given value.
|
#
|
public
|
millis(int $value): CarbonInterface
Set current instance millisecond to the given value.
Set current instance millisecond to the given value.
|
#
|
public
|
milli(int $value): CarbonInterface
Set current instance millisecond to the given value.
Set current instance millisecond to the given value.
|
#
|
public
|
setMillis(int $value): CarbonInterface
Set current instance millisecond to the given value.
Set current instance millisecond to the given value.
|
#
|
public
|
setMilli(int $value): CarbonInterface
Set current instance millisecond to the given value.
Set current instance millisecond to the given value.
|
#
|
public
|
milliseconds(int $value): CarbonInterface
Set current instance millisecond to the given value.
Set current instance millisecond to the given value.
|
#
|
public
|
millisecond(int $value): CarbonInterface
Set current instance millisecond to the given value.
Set current instance millisecond to the given value.
|
#
|
public
|
setMilliseconds(int $value): CarbonInterface
Set current instance millisecond to the given value.
Set current instance millisecond to the given value.
|
#
|
public
|
setMillisecond(int $value): CarbonInterface
Set current instance millisecond to the given value.
Set current instance millisecond to the given value.
|
#
|
public
|
micros(int $value): CarbonInterface
Set current instance microsecond to the given value.
Set current instance microsecond to the given value.
|
#
|
public
|
micro(int $value): CarbonInterface
Set current instance microsecond to the given value.
Set current instance microsecond to the given value.
|
#
|
public
|
setMicros(int $value): CarbonInterface
Set current instance microsecond to the given value.
Set current instance microsecond to the given value.
|
#
|
public
|
setMicro(int $value): CarbonInterface
Set current instance microsecond to the given value.
Set current instance microsecond to the given value.
|
#
|
public
|
microseconds(int $value): CarbonInterface
Set current instance microsecond to the given value.
Set current instance microsecond to the given value.
|
#
|
public
|
microsecond(int $value): CarbonInterface
Set current instance microsecond to the given value.
Set current instance microsecond to the given value.
|
#
|
public
|
setMicroseconds(int $value): CarbonInterface
Set current instance microsecond to the given value.
Set current instance microsecond to the given value.
|
#
|
public
|
setMicrosecond(int $value): CarbonInterface
Set current instance microsecond to the given value.
Set current instance microsecond to the given value.
|
#
|
public
|
addYears(int $value = 1): CarbonInterface
Add years (the $value count passed in) to the instance (using date interval).
Add years (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
addYear(): CarbonInterface
Add one year to the instance (using date interval).
Add one year to the instance (using date interval).
|
#
|
public
|
subYears(int $value = 1): CarbonInterface
Sub years (the $value count passed in) to the instance (using date interval).
Sub years (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
subYear(): CarbonInterface
Sub one year to the instance (using date interval).
Sub one year to the instance (using date interval).
|
#
|
public
|
addYearsWithOverflow(int $value = 1): CarbonInterface
Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
addYearWithOverflow(): CarbonInterface
Add one year to the instance (using date interval) with overflow explicitly allowed.
Add one year to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
subYearsWithOverflow(int $value = 1): CarbonInterface
Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
subYearWithOverflow(): CarbonInterface
Sub one year to the instance (using date interval) with overflow explicitly allowed.
Sub one year to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
addYearsWithoutOverflow(int $value = 1): CarbonInterface
Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addYearWithoutOverflow(): CarbonInterface
Add one year to the instance (using date interval) with overflow explicitly forbidden.
Add one year to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subYearsWithoutOverflow(int $value = 1): CarbonInterface
Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subYearWithoutOverflow(): CarbonInterface
Sub one year to the instance (using date interval) with overflow explicitly forbidden.
Sub one year to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addYearsWithNoOverflow(int $value = 1): CarbonInterface
Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addYearWithNoOverflow(): CarbonInterface
Add one year to the instance (using date interval) with overflow explicitly forbidden.
Add one year to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subYearsWithNoOverflow(int $value = 1): CarbonInterface
Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subYearWithNoOverflow(): CarbonInterface
Sub one year to the instance (using date interval) with overflow explicitly forbidden.
Sub one year to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addYearsNoOverflow(int $value = 1): CarbonInterface
Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addYearNoOverflow(): CarbonInterface
Add one year to the instance (using date interval) with overflow explicitly forbidden.
Add one year to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subYearsNoOverflow(int $value = 1): CarbonInterface
Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subYearNoOverflow(): CarbonInterface
Sub one year to the instance (using date interval) with overflow explicitly forbidden.
Sub one year to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addMonths(int $value = 1): CarbonInterface
Add months (the $value count passed in) to the instance (using date interval).
Add months (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
addMonth(): CarbonInterface
Add one month to the instance (using date interval).
Add one month to the instance (using date interval).
|
#
|
public
|
subMonths(int $value = 1): CarbonInterface
Sub months (the $value count passed in) to the instance (using date interval).
Sub months (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
subMonth(): CarbonInterface
Sub one month to the instance (using date interval).
Sub one month to the instance (using date interval).
|
#
|
public
|
addMonthsWithOverflow(int $value = 1): CarbonInterface
Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
addMonthWithOverflow(): CarbonInterface
Add one month to the instance (using date interval) with overflow explicitly allowed.
Add one month to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
subMonthsWithOverflow(int $value = 1): CarbonInterface
Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
subMonthWithOverflow(): CarbonInterface
Sub one month to the instance (using date interval) with overflow explicitly allowed.
Sub one month to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
addMonthsWithoutOverflow(int $value = 1): CarbonInterface
Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addMonthWithoutOverflow(): CarbonInterface
Add one month to the instance (using date interval) with overflow explicitly forbidden.
Add one month to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subMonthsWithoutOverflow(int $value = 1): CarbonInterface
Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subMonthWithoutOverflow(): CarbonInterface
Sub one month to the instance (using date interval) with overflow explicitly forbidden.
Sub one month to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addMonthsWithNoOverflow(int $value = 1): CarbonInterface
Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addMonthWithNoOverflow(): CarbonInterface
Add one month to the instance (using date interval) with overflow explicitly forbidden.
Add one month to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subMonthsWithNoOverflow(int $value = 1): CarbonInterface
Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subMonthWithNoOverflow(): CarbonInterface
Sub one month to the instance (using date interval) with overflow explicitly forbidden.
Sub one month to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addMonthsNoOverflow(int $value = 1): CarbonInterface
Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addMonthNoOverflow(): CarbonInterface
Add one month to the instance (using date interval) with overflow explicitly forbidden.
Add one month to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subMonthsNoOverflow(int $value = 1): CarbonInterface
Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subMonthNoOverflow(): CarbonInterface
Sub one month to the instance (using date interval) with overflow explicitly forbidden.
Sub one month to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addDays(int $value = 1): CarbonInterface
Add days (the $value count passed in) to the instance (using date interval).
Add days (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
addDay(): CarbonInterface
Add one day to the instance (using date interval).
Add one day to the instance (using date interval).
|
#
|
public
|
subDays(int $value = 1): CarbonInterface
Sub days (the $value count passed in) to the instance (using date interval).
Sub days (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
subDay(): CarbonInterface
Sub one day to the instance (using date interval).
Sub one day to the instance (using date interval).
|
#
|
public
|
addHours(int $value = 1): CarbonInterface
Add hours (the $value count passed in) to the instance (using date interval).
Add hours (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
addHour(): CarbonInterface
Add one hour to the instance (using date interval).
Add one hour to the instance (using date interval).
|
#
|
public
|
subHours(int $value = 1): CarbonInterface
Sub hours (the $value count passed in) to the instance (using date interval).
Sub hours (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
subHour(): CarbonInterface
Sub one hour to the instance (using date interval).
Sub one hour to the instance (using date interval).
|
#
|
public
|
addMinutes(int $value = 1): CarbonInterface
Add minutes (the $value count passed in) to the instance (using date interval).
Add minutes (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
addMinute(): CarbonInterface
Add one minute to the instance (using date interval).
Add one minute to the instance (using date interval).
|
#
|
public
|
subMinutes(int $value = 1): CarbonInterface
Sub minutes (the $value count passed in) to the instance (using date interval).
Sub minutes (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
subMinute(): CarbonInterface
Sub one minute to the instance (using date interval).
Sub one minute to the instance (using date interval).
|
#
|
public
|
addSeconds(int $value = 1): CarbonInterface
Add seconds (the $value count passed in) to the instance (using date interval).
Add seconds (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
addSecond(): CarbonInterface
Add one second to the instance (using date interval).
Add one second to the instance (using date interval).
|
#
|
public
|
subSeconds(int $value = 1): CarbonInterface
Sub seconds (the $value count passed in) to the instance (using date interval).
Sub seconds (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
subSecond(): CarbonInterface
Sub one second to the instance (using date interval).
Sub one second to the instance (using date interval).
|
#
|
public
|
addMillis(int $value = 1): CarbonInterface
Add milliseconds (the $value count passed in) to the instance (using date interval).
Add milliseconds (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
addMilli(): CarbonInterface
Add one millisecond to the instance (using date interval).
Add one millisecond to the instance (using date interval).
|
#
|
public
|
subMillis(int $value = 1): CarbonInterface
Sub milliseconds (the $value count passed in) to the instance (using date interval).
Sub milliseconds (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
subMilli(): CarbonInterface
Sub one millisecond to the instance (using date interval).
Sub one millisecond to the instance (using date interval).
|
#
|
public
|
addMilliseconds(int $value = 1): CarbonInterface
Add milliseconds (the $value count passed in) to the instance (using date interval).
Add milliseconds (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
addMillisecond(): CarbonInterface
Add one millisecond to the instance (using date interval).
Add one millisecond to the instance (using date interval).
|
#
|
public
|
subMilliseconds(int $value = 1): CarbonInterface
Sub milliseconds (the $value count passed in) to the instance (using date interval).
Sub milliseconds (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
subMillisecond(): CarbonInterface
Sub one millisecond to the instance (using date interval).
Sub one millisecond to the instance (using date interval).
|
#
|
public
|
addMicros(int $value = 1): CarbonInterface
Add microseconds (the $value count passed in) to the instance (using date interval).
Add microseconds (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
addMicro(): CarbonInterface
Add one microsecond to the instance (using date interval).
Add one microsecond to the instance (using date interval).
|
#
|
public
|
subMicros(int $value = 1): CarbonInterface
Sub microseconds (the $value count passed in) to the instance (using date interval).
Sub microseconds (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
subMicro(): CarbonInterface
Sub one microsecond to the instance (using date interval).
Sub one microsecond to the instance (using date interval).
|
#
|
public
|
addMicroseconds(int $value = 1): CarbonInterface
Add microseconds (the $value count passed in) to the instance (using date interval).
Add microseconds (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
addMicrosecond(): CarbonInterface
Add one microsecond to the instance (using date interval).
Add one microsecond to the instance (using date interval).
|
#
|
public
|
subMicroseconds(int $value = 1): CarbonInterface
Sub microseconds (the $value count passed in) to the instance (using date interval).
Sub microseconds (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
subMicrosecond(): CarbonInterface
Sub one microsecond to the instance (using date interval).
Sub one microsecond to the instance (using date interval).
|
#
|
public
|
addMillennia(int $value = 1): CarbonInterface
Add millennia (the $value count passed in) to the instance (using date interval).
Add millennia (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
addMillennium(): CarbonInterface
Add one millennium to the instance (using date interval).
Add one millennium to the instance (using date interval).
|
#
|
public
|
subMillennia(int $value = 1): CarbonInterface
Sub millennia (the $value count passed in) to the instance (using date interval).
Sub millennia (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
subMillennium(): CarbonInterface
Sub one millennium to the instance (using date interval).
Sub one millennium to the instance (using date interval).
|
#
|
public
|
addMillenniaWithOverflow(int $value = 1): CarbonInterface
Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
addMillenniumWithOverflow(): CarbonInterface
Add one millennium to the instance (using date interval) with overflow explicitly allowed.
Add one millennium to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
subMillenniaWithOverflow(int $value = 1): CarbonInterface
Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
subMillenniumWithOverflow(): CarbonInterface
Sub one millennium to the instance (using date interval) with overflow explicitly allowed.
Sub one millennium to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
addMillenniaWithoutOverflow(int $value = 1): CarbonInterface
Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addMillenniumWithoutOverflow(): CarbonInterface
Add one millennium to the instance (using date interval) with overflow explicitly forbidden.
Add one millennium to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subMillenniaWithoutOverflow(int $value = 1): CarbonInterface
Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subMillenniumWithoutOverflow(): CarbonInterface
Sub one millennium to the instance (using date interval) with overflow explicitly forbidden.
Sub one millennium to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addMillenniaWithNoOverflow(int $value = 1): CarbonInterface
Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addMillenniumWithNoOverflow(): CarbonInterface
Add one millennium to the instance (using date interval) with overflow explicitly forbidden.
Add one millennium to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subMillenniaWithNoOverflow(int $value = 1): CarbonInterface
Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subMillenniumWithNoOverflow(): CarbonInterface
Sub one millennium to the instance (using date interval) with overflow explicitly forbidden.
Sub one millennium to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addMillenniaNoOverflow(int $value = 1): CarbonInterface
Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addMillenniumNoOverflow(): CarbonInterface
Add one millennium to the instance (using date interval) with overflow explicitly forbidden.
Add one millennium to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subMillenniaNoOverflow(int $value = 1): CarbonInterface
Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subMillenniumNoOverflow(): CarbonInterface
Sub one millennium to the instance (using date interval) with overflow explicitly forbidden.
Sub one millennium to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addCenturies(int $value = 1): CarbonInterface
Add centuries (the $value count passed in) to the instance (using date interval).
Add centuries (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
addCentury(): CarbonInterface
Add one century to the instance (using date interval).
Add one century to the instance (using date interval).
|
#
|
public
|
subCenturies(int $value = 1): CarbonInterface
Sub centuries (the $value count passed in) to the instance (using date interval).
Sub centuries (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
subCentury(): CarbonInterface
Sub one century to the instance (using date interval).
Sub one century to the instance (using date interval).
|
#
|
public
|
addCenturiesWithOverflow(int $value = 1): CarbonInterface
Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
addCenturyWithOverflow(): CarbonInterface
Add one century to the instance (using date interval) with overflow explicitly allowed.
Add one century to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
subCenturiesWithOverflow(int $value = 1): CarbonInterface
Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
subCenturyWithOverflow(): CarbonInterface
Sub one century to the instance (using date interval) with overflow explicitly allowed.
Sub one century to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
addCenturiesWithoutOverflow(int $value = 1): CarbonInterface
Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addCenturyWithoutOverflow(): CarbonInterface
Add one century to the instance (using date interval) with overflow explicitly forbidden.
Add one century to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subCenturiesWithoutOverflow(int $value = 1): CarbonInterface
Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subCenturyWithoutOverflow(): CarbonInterface
Sub one century to the instance (using date interval) with overflow explicitly forbidden.
Sub one century to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addCenturiesWithNoOverflow(int $value = 1): CarbonInterface
Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addCenturyWithNoOverflow(): CarbonInterface
Add one century to the instance (using date interval) with overflow explicitly forbidden.
Add one century to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subCenturiesWithNoOverflow(int $value = 1): CarbonInterface
Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subCenturyWithNoOverflow(): CarbonInterface
Sub one century to the instance (using date interval) with overflow explicitly forbidden.
Sub one century to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addCenturiesNoOverflow(int $value = 1): CarbonInterface
Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addCenturyNoOverflow(): CarbonInterface
Add one century to the instance (using date interval) with overflow explicitly forbidden.
Add one century to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subCenturiesNoOverflow(int $value = 1): CarbonInterface
Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subCenturyNoOverflow(): CarbonInterface
Sub one century to the instance (using date interval) with overflow explicitly forbidden.
Sub one century to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addDecades(int $value = 1): CarbonInterface
Add decades (the $value count passed in) to the instance (using date interval).
Add decades (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
addDecade(): CarbonInterface
Add one decade to the instance (using date interval).
Add one decade to the instance (using date interval).
|
#
|
public
|
subDecades(int $value = 1): CarbonInterface
Sub decades (the $value count passed in) to the instance (using date interval).
Sub decades (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
subDecade(): CarbonInterface
Sub one decade to the instance (using date interval).
Sub one decade to the instance (using date interval).
|
#
|
public
|
addDecadesWithOverflow(int $value = 1): CarbonInterface
Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
addDecadeWithOverflow(): CarbonInterface
Add one decade to the instance (using date interval) with overflow explicitly allowed.
Add one decade to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
subDecadesWithOverflow(int $value = 1): CarbonInterface
Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
subDecadeWithOverflow(): CarbonInterface
Sub one decade to the instance (using date interval) with overflow explicitly allowed.
Sub one decade to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
addDecadesWithoutOverflow(int $value = 1): CarbonInterface
Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addDecadeWithoutOverflow(): CarbonInterface
Add one decade to the instance (using date interval) with overflow explicitly forbidden.
Add one decade to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subDecadesWithoutOverflow(int $value = 1): CarbonInterface
Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subDecadeWithoutOverflow(): CarbonInterface
Sub one decade to the instance (using date interval) with overflow explicitly forbidden.
Sub one decade to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addDecadesWithNoOverflow(int $value = 1): CarbonInterface
Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addDecadeWithNoOverflow(): CarbonInterface
Add one decade to the instance (using date interval) with overflow explicitly forbidden.
Add one decade to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subDecadesWithNoOverflow(int $value = 1): CarbonInterface
Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subDecadeWithNoOverflow(): CarbonInterface
Sub one decade to the instance (using date interval) with overflow explicitly forbidden.
Sub one decade to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addDecadesNoOverflow(int $value = 1): CarbonInterface
Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addDecadeNoOverflow(): CarbonInterface
Add one decade to the instance (using date interval) with overflow explicitly forbidden.
Add one decade to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subDecadesNoOverflow(int $value = 1): CarbonInterface
Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subDecadeNoOverflow(): CarbonInterface
Sub one decade to the instance (using date interval) with overflow explicitly forbidden.
Sub one decade to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addQuarters(int $value = 1): CarbonInterface
Add quarters (the $value count passed in) to the instance (using date interval).
Add quarters (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
addQuarter(): CarbonInterface
Add one quarter to the instance (using date interval).
Add one quarter to the instance (using date interval).
|
#
|
public
|
subQuarters(int $value = 1): CarbonInterface
Sub quarters (the $value count passed in) to the instance (using date interval).
Sub quarters (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
subQuarter(): CarbonInterface
Sub one quarter to the instance (using date interval).
Sub one quarter to the instance (using date interval).
|
#
|
public
|
addQuartersWithOverflow(int $value = 1): CarbonInterface
Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
addQuarterWithOverflow(): CarbonInterface
Add one quarter to the instance (using date interval) with overflow explicitly allowed.
Add one quarter to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
subQuartersWithOverflow(int $value = 1): CarbonInterface
Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
subQuarterWithOverflow(): CarbonInterface
Sub one quarter to the instance (using date interval) with overflow explicitly allowed.
Sub one quarter to the instance (using date interval) with overflow explicitly allowed.
|
#
|
public
|
addQuartersWithoutOverflow(int $value = 1): CarbonInterface
Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addQuarterWithoutOverflow(): CarbonInterface
Add one quarter to the instance (using date interval) with overflow explicitly forbidden.
Add one quarter to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subQuartersWithoutOverflow(int $value = 1): CarbonInterface
Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subQuarterWithoutOverflow(): CarbonInterface
Sub one quarter to the instance (using date interval) with overflow explicitly forbidden.
Sub one quarter to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addQuartersWithNoOverflow(int $value = 1): CarbonInterface
Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addQuarterWithNoOverflow(): CarbonInterface
Add one quarter to the instance (using date interval) with overflow explicitly forbidden.
Add one quarter to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subQuartersWithNoOverflow(int $value = 1): CarbonInterface
Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subQuarterWithNoOverflow(): CarbonInterface
Sub one quarter to the instance (using date interval) with overflow explicitly forbidden.
Sub one quarter to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addQuartersNoOverflow(int $value = 1): CarbonInterface
Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addQuarterNoOverflow(): CarbonInterface
Add one quarter to the instance (using date interval) with overflow explicitly forbidden.
Add one quarter to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subQuartersNoOverflow(int $value = 1): CarbonInterface
Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
subQuarterNoOverflow(): CarbonInterface
Sub one quarter to the instance (using date interval) with overflow explicitly forbidden.
Sub one quarter to the instance (using date interval) with overflow explicitly forbidden.
|
#
|
public
|
addWeeks(int $value = 1): CarbonInterface
Add weeks (the $value count passed in) to the instance (using date interval).
Add weeks (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
addWeek(): CarbonInterface
Add one week to the instance (using date interval).
Add one week to the instance (using date interval).
|
#
|
public
|
subWeeks(int $value = 1): CarbonInterface
Sub weeks (the $value count passed in) to the instance (using date interval).
Sub weeks (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
subWeek(): CarbonInterface
Sub one week to the instance (using date interval).
Sub one week to the instance (using date interval).
|
#
|
public
|
addWeekdays(int $value = 1): CarbonInterface
Add weekdays (the $value count passed in) to the instance (using date interval).
Add weekdays (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
addWeekday(): CarbonInterface
Add one weekday to the instance (using date interval).
Add one weekday to the instance (using date interval).
|
#
|
public
|
subWeekdays(int $value = 1): CarbonInterface
Sub weekdays (the $value count passed in) to the instance (using date interval).
Sub weekdays (the $value count passed in) to the instance (using date interval).
|
#
|
public
|
subWeekday(): CarbonInterface
Sub one weekday to the instance (using date interval).
Sub one weekday to the instance (using date interval).
|
#
|
public
|
addRealMicros(int $value = 1): CarbonInterface
Add microseconds (the $value count passed in) to the instance (using timestamp).
Add microseconds (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
addRealMicro(): CarbonInterface
Add one microsecond to the instance (using timestamp).
Add one microsecond to the instance (using timestamp).
|
#
|
public
|
subRealMicros(int $value = 1): CarbonInterface
Sub microseconds (the $value count passed in) to the instance (using timestamp).
Sub microseconds (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
subRealMicro(): CarbonInterface
Sub one microsecond to the instance (using timestamp).
Sub one microsecond to the instance (using timestamp).
|
#
|
public
|
microsUntil($endDate = null, int $factor = 1): CarbonPeriod
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each microsecond or…
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each microsecond or every X microseconds if a factor is given.
|
#
|
public
|
addRealMicroseconds(int $value = 1): CarbonInterface
Add microseconds (the $value count passed in) to the instance (using timestamp).
Add microseconds (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
addRealMicrosecond(): CarbonInterface
Add one microsecond to the instance (using timestamp).
Add one microsecond to the instance (using timestamp).
|
#
|
public
|
subRealMicroseconds(int $value = 1): CarbonInterface
Sub microseconds (the $value count passed in) to the instance (using timestamp).
Sub microseconds (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
subRealMicrosecond(): CarbonInterface
Sub one microsecond to the instance (using timestamp).
Sub one microsecond to the instance (using timestamp).
|
#
|
public
|
microsecondsUntil($endDate = null, int $factor = 1): CarbonPeriod
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each microsecond or…
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each microsecond or every X microseconds if a factor is given.
|
#
|
public
|
addRealMillis(int $value = 1): CarbonInterface
Add milliseconds (the $value count passed in) to the instance (using timestamp).
Add milliseconds (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
addRealMilli(): CarbonInterface
Add one millisecond to the instance (using timestamp).
Add one millisecond to the instance (using timestamp).
|
#
|
public
|
subRealMillis(int $value = 1): CarbonInterface
Sub milliseconds (the $value count passed in) to the instance (using timestamp).
Sub milliseconds (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
subRealMilli(): CarbonInterface
Sub one millisecond to the instance (using timestamp).
Sub one millisecond to the instance (using timestamp).
|
#
|
public
|
millisUntil($endDate = null, int $factor = 1): CarbonPeriod
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millisecond or…
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millisecond or every X milliseconds if a factor is given.
|
#
|
public
|
addRealMilliseconds(int $value = 1): CarbonInterface
Add milliseconds (the $value count passed in) to the instance (using timestamp).
Add milliseconds (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
addRealMillisecond(): CarbonInterface
Add one millisecond to the instance (using timestamp).
Add one millisecond to the instance (using timestamp).
|
#
|
public
|
subRealMilliseconds(int $value = 1): CarbonInterface
Sub milliseconds (the $value count passed in) to the instance (using timestamp).
Sub milliseconds (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
subRealMillisecond(): CarbonInterface
Sub one millisecond to the instance (using timestamp).
Sub one millisecond to the instance (using timestamp).
|
#
|
public
|
millisecondsUntil($endDate = null, int $factor = 1): CarbonPeriod
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millisecond or…
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millisecond or every X milliseconds if a factor is given.
|
#
|
public
|
addRealSeconds(int $value = 1): CarbonInterface
Add seconds (the $value count passed in) to the instance (using timestamp).
Add seconds (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
addRealSecond(): CarbonInterface
Add one second to the instance (using timestamp).
Add one second to the instance (using timestamp).
|
#
|
public
|
subRealSeconds(int $value = 1): CarbonInterface
Sub seconds (the $value count passed in) to the instance (using timestamp).
Sub seconds (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
subRealSecond(): CarbonInterface
Sub one second to the instance (using timestamp).
Sub one second to the instance (using timestamp).
|
#
|
public
|
secondsUntil($endDate = null, int $factor = 1): CarbonPeriod
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each second or every…
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each second or every X seconds if a factor is given.
|
#
|
public
|
addRealMinutes(int $value = 1): CarbonInterface
Add minutes (the $value count passed in) to the instance (using timestamp).
Add minutes (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
addRealMinute(): CarbonInterface
Add one minute to the instance (using timestamp).
Add one minute to the instance (using timestamp).
|
#
|
public
|
subRealMinutes(int $value = 1): CarbonInterface
Sub minutes (the $value count passed in) to the instance (using timestamp).
Sub minutes (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
subRealMinute(): CarbonInterface
Sub one minute to the instance (using timestamp).
Sub one minute to the instance (using timestamp).
|
#
|
public
|
minutesUntil($endDate = null, int $factor = 1): CarbonPeriod
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each minute or every…
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each minute or every X minutes if a factor is given.
|
#
|
public
|
addRealHours(int $value = 1): CarbonInterface
Add hours (the $value count passed in) to the instance (using timestamp).
Add hours (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
addRealHour(): CarbonInterface
Add one hour to the instance (using timestamp).
Add one hour to the instance (using timestamp).
|
#
|
public
|
subRealHours(int $value = 1): CarbonInterface
Sub hours (the $value count passed in) to the instance (using timestamp).
Sub hours (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
subRealHour(): CarbonInterface
Sub one hour to the instance (using timestamp).
Sub one hour to the instance (using timestamp).
|
#
|
public
|
hoursUntil($endDate = null, int $factor = 1): CarbonPeriod
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each hour or every X…
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each hour or every X hours if a factor is given.
|
#
|
public
|
addRealDays(int $value = 1): CarbonInterface
Add days (the $value count passed in) to the instance (using timestamp).
Add days (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
addRealDay(): CarbonInterface
Add one day to the instance (using timestamp).
Add one day to the instance (using timestamp).
|
#
|
public
|
subRealDays(int $value = 1): CarbonInterface
Sub days (the $value count passed in) to the instance (using timestamp).
Sub days (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
subRealDay(): CarbonInterface
Sub one day to the instance (using timestamp).
Sub one day to the instance (using timestamp).
|
#
|
public
|
daysUntil($endDate = null, int $factor = 1): CarbonPeriod
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each day or every X…
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each day or every X days if a factor is given.
|
#
|
public
|
addRealWeeks(int $value = 1): CarbonInterface
Add weeks (the $value count passed in) to the instance (using timestamp).
Add weeks (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
addRealWeek(): CarbonInterface
Add one week to the instance (using timestamp).
Add one week to the instance (using timestamp).
|
#
|
public
|
subRealWeeks(int $value = 1): CarbonInterface
Sub weeks (the $value count passed in) to the instance (using timestamp).
Sub weeks (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
subRealWeek(): CarbonInterface
Sub one week to the instance (using timestamp).
Sub one week to the instance (using timestamp).
|
#
|
public
|
weeksUntil($endDate = null, int $factor = 1): CarbonPeriod
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each week or every X…
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each week or every X weeks if a factor is given.
|
#
|
public
|
addRealMonths(int $value = 1): CarbonInterface
Add months (the $value count passed in) to the instance (using timestamp).
Add months (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
addRealMonth(): CarbonInterface
Add one month to the instance (using timestamp).
Add one month to the instance (using timestamp).
|
#
|
public
|
subRealMonths(int $value = 1): CarbonInterface
Sub months (the $value count passed in) to the instance (using timestamp).
Sub months (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
subRealMonth(): CarbonInterface
Sub one month to the instance (using timestamp).
Sub one month to the instance (using timestamp).
|
#
|
public
|
monthsUntil($endDate = null, int $factor = 1): CarbonPeriod
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each month or every…
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each month or every X months if a factor is given.
|
#
|
public
|
addRealQuarters(int $value = 1): CarbonInterface
Add quarters (the $value count passed in) to the instance (using timestamp).
Add quarters (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
addRealQuarter(): CarbonInterface
Add one quarter to the instance (using timestamp).
Add one quarter to the instance (using timestamp).
|
#
|
public
|
subRealQuarters(int $value = 1): CarbonInterface
Sub quarters (the $value count passed in) to the instance (using timestamp).
Sub quarters (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
subRealQuarter(): CarbonInterface
Sub one quarter to the instance (using timestamp).
Sub one quarter to the instance (using timestamp).
|
#
|
public
|
quartersUntil($endDate = null, int $factor = 1): CarbonPeriod
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each quarter or…
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each quarter or every X quarters if a factor is given.
|
#
|
public
|
addRealYears(int $value = 1): CarbonInterface
Add years (the $value count passed in) to the instance (using timestamp).
Add years (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
addRealYear(): CarbonInterface
Add one year to the instance (using timestamp).
Add one year to the instance (using timestamp).
|
#
|
public
|
subRealYears(int $value = 1): CarbonInterface
Sub years (the $value count passed in) to the instance (using timestamp).
Sub years (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
subRealYear(): CarbonInterface
Sub one year to the instance (using timestamp).
Sub one year to the instance (using timestamp).
|
#
|
public
|
yearsUntil($endDate = null, int $factor = 1): CarbonPeriod
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each year or every X…
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each year or every X years if a factor is given.
|
#
|
public
|
addRealDecades(int $value = 1): CarbonInterface
Add decades (the $value count passed in) to the instance (using timestamp).
Add decades (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
addRealDecade(): CarbonInterface
Add one decade to the instance (using timestamp).
Add one decade to the instance (using timestamp).
|
#
|
public
|
subRealDecades(int $value = 1): CarbonInterface
Sub decades (the $value count passed in) to the instance (using timestamp).
Sub decades (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
subRealDecade(): CarbonInterface
Sub one decade to the instance (using timestamp).
Sub one decade to the instance (using timestamp).
|
#
|
public
|
decadesUntil($endDate = null, int $factor = 1): CarbonPeriod
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each decade or every…
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each decade or every X decades if a factor is given.
|
#
|
public
|
addRealCenturies(int $value = 1): CarbonInterface
Add centuries (the $value count passed in) to the instance (using timestamp).
Add centuries (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
addRealCentury(): CarbonInterface
Add one century to the instance (using timestamp).
Add one century to the instance (using timestamp).
|
#
|
public
|
subRealCenturies(int $value = 1): CarbonInterface
Sub centuries (the $value count passed in) to the instance (using timestamp).
Sub centuries (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
subRealCentury(): CarbonInterface
Sub one century to the instance (using timestamp).
Sub one century to the instance (using timestamp).
|
#
|
public
|
centuriesUntil($endDate = null, int $factor = 1): CarbonPeriod
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each century or…
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each century or every X centuries if a factor is given.
|
#
|
public
|
addRealMillennia(int $value = 1): CarbonInterface
Add millennia (the $value count passed in) to the instance (using timestamp).
Add millennia (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
addRealMillennium(): CarbonInterface
Add one millennium to the instance (using timestamp).
Add one millennium to the instance (using timestamp).
|
#
|
public
|
subRealMillennia(int $value = 1): CarbonInterface
Sub millennia (the $value count passed in) to the instance (using timestamp).
Sub millennia (the $value count passed in) to the instance (using timestamp).
|
#
|
public
|
subRealMillennium(): CarbonInterface
Sub one millennium to the instance (using timestamp).
Sub one millennium to the instance (using timestamp).
|
#
|
public
|
millenniaUntil($endDate = null, int $factor = 1): CarbonPeriod
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millennium or…
Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millennium or every X millennia if a factor is given.
|
#
|
public
|
roundYear(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance year with given precision using the given function.
Round the current instance year with given precision using the given function.
|
#
|
public
|
roundYears(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance year with given precision using the given function.
Round the current instance year with given precision using the given function.
|
#
|
public
|
floorYear(float $precision = 1): CarbonInterface
Truncate the current instance year with given precision.
Truncate the current instance year with given precision.
|
#
|
public
|
floorYears(float $precision = 1): CarbonInterface
Truncate the current instance year with given precision.
Truncate the current instance year with given precision.
|
#
|
public
|
ceilYear(float $precision = 1): CarbonInterface
Ceil the current instance year with given precision.
Ceil the current instance year with given precision.
|
#
|
public
|
ceilYears(float $precision = 1): CarbonInterface
Ceil the current instance year with given precision.
Ceil the current instance year with given precision.
|
#
|
public
|
roundMonth(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance month with given precision using the given function.
Round the current instance month with given precision using the given function.
|
#
|
public
|
roundMonths(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance month with given precision using the given function.
Round the current instance month with given precision using the given function.
|
#
|
public
|
floorMonth(float $precision = 1): CarbonInterface
Truncate the current instance month with given precision.
Truncate the current instance month with given precision.
|
#
|
public
|
floorMonths(float $precision = 1): CarbonInterface
Truncate the current instance month with given precision.
Truncate the current instance month with given precision.
|
#
|
public
|
ceilMonth(float $precision = 1): CarbonInterface
Ceil the current instance month with given precision.
Ceil the current instance month with given precision.
|
#
|
public
|
ceilMonths(float $precision = 1): CarbonInterface
Ceil the current instance month with given precision.
Ceil the current instance month with given precision.
|
#
|
public
|
roundDay(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance day with given precision using the given function.
Round the current instance day with given precision using the given function.
|
#
|
public
|
roundDays(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance day with given precision using the given function.
Round the current instance day with given precision using the given function.
|
#
|
public
|
floorDay(float $precision = 1): CarbonInterface
Truncate the current instance day with given precision.
Truncate the current instance day with given precision.
|
#
|
public
|
floorDays(float $precision = 1): CarbonInterface
Truncate the current instance day with given precision.
Truncate the current instance day with given precision.
|
#
|
public
|
ceilDay(float $precision = 1): CarbonInterface
Ceil the current instance day with given precision.
Ceil the current instance day with given precision.
|
#
|
public
|
ceilDays(float $precision = 1): CarbonInterface
Ceil the current instance day with given precision.
Ceil the current instance day with given precision.
|
#
|
public
|
roundHour(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance hour with given precision using the given function.
Round the current instance hour with given precision using the given function.
|
#
|
public
|
roundHours(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance hour with given precision using the given function.
Round the current instance hour with given precision using the given function.
|
#
|
public
|
floorHour(float $precision = 1): CarbonInterface
Truncate the current instance hour with given precision.
Truncate the current instance hour with given precision.
|
#
|
public
|
floorHours(float $precision = 1): CarbonInterface
Truncate the current instance hour with given precision.
Truncate the current instance hour with given precision.
|
#
|
public
|
ceilHour(float $precision = 1): CarbonInterface
Ceil the current instance hour with given precision.
Ceil the current instance hour with given precision.
|
#
|
public
|
ceilHours(float $precision = 1): CarbonInterface
Ceil the current instance hour with given precision.
Ceil the current instance hour with given precision.
|
#
|
public
|
roundMinute(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance minute with given precision using the given function.
Round the current instance minute with given precision using the given function.
|
#
|
public
|
roundMinutes(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance minute with given precision using the given function.
Round the current instance minute with given precision using the given function.
|
#
|
public
|
floorMinute(float $precision = 1): CarbonInterface
Truncate the current instance minute with given precision.
Truncate the current instance minute with given precision.
|
#
|
public
|
floorMinutes(float $precision = 1): CarbonInterface
Truncate the current instance minute with given precision.
Truncate the current instance minute with given precision.
|
#
|
public
|
ceilMinute(float $precision = 1): CarbonInterface
Ceil the current instance minute with given precision.
Ceil the current instance minute with given precision.
|
#
|
public
|
ceilMinutes(float $precision = 1): CarbonInterface
Ceil the current instance minute with given precision.
Ceil the current instance minute with given precision.
|
#
|
public
|
roundSecond(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance second with given precision using the given function.
Round the current instance second with given precision using the given function.
|
#
|
public
|
roundSeconds(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance second with given precision using the given function.
Round the current instance second with given precision using the given function.
|
#
|
public
|
floorSecond(float $precision = 1): CarbonInterface
Truncate the current instance second with given precision.
Truncate the current instance second with given precision.
|
#
|
public
|
floorSeconds(float $precision = 1): CarbonInterface
Truncate the current instance second with given precision.
Truncate the current instance second with given precision.
|
#
|
public
|
ceilSecond(float $precision = 1): CarbonInterface
Ceil the current instance second with given precision.
Ceil the current instance second with given precision.
|
#
|
public
|
ceilSeconds(float $precision = 1): CarbonInterface
Ceil the current instance second with given precision.
Ceil the current instance second with given precision.
|
#
|
public
|
roundMillennium(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance millennium with given precision using the given function.
Round the current instance millennium with given precision using the given function.
|
#
|
public
|
roundMillennia(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance millennium with given precision using the given function.
Round the current instance millennium with given precision using the given function.
|
#
|
public
|
floorMillennium(float $precision = 1): CarbonInterface
Truncate the current instance millennium with given precision.
Truncate the current instance millennium with given precision.
|
#
|
public
|
floorMillennia(float $precision = 1): CarbonInterface
Truncate the current instance millennium with given precision.
Truncate the current instance millennium with given precision.
|
#
|
public
|
ceilMillennium(float $precision = 1): CarbonInterface
Ceil the current instance millennium with given precision.
Ceil the current instance millennium with given precision.
|
#
|
public
|
ceilMillennia(float $precision = 1): CarbonInterface
Ceil the current instance millennium with given precision.
Ceil the current instance millennium with given precision.
|
#
|
public
|
roundCentury(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance century with given precision using the given function.
Round the current instance century with given precision using the given function.
|
#
|
public
|
roundCenturies(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance century with given precision using the given function.
Round the current instance century with given precision using the given function.
|
#
|
public
|
floorCentury(float $precision = 1): CarbonInterface
Truncate the current instance century with given precision.
Truncate the current instance century with given precision.
|
#
|
public
|
floorCenturies(float $precision = 1): CarbonInterface
Truncate the current instance century with given precision.
Truncate the current instance century with given precision.
|
#
|
public
|
ceilCentury(float $precision = 1): CarbonInterface
Ceil the current instance century with given precision.
Ceil the current instance century with given precision.
|
#
|
public
|
ceilCenturies(float $precision = 1): CarbonInterface
Ceil the current instance century with given precision.
Ceil the current instance century with given precision.
|
#
|
public
|
roundDecade(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance decade with given precision using the given function.
Round the current instance decade with given precision using the given function.
|
#
|
public
|
roundDecades(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance decade with given precision using the given function.
Round the current instance decade with given precision using the given function.
|
#
|
public
|
floorDecade(float $precision = 1): CarbonInterface
Truncate the current instance decade with given precision.
Truncate the current instance decade with given precision.
|
#
|
public
|
floorDecades(float $precision = 1): CarbonInterface
Truncate the current instance decade with given precision.
Truncate the current instance decade with given precision.
|
#
|
public
|
ceilDecade(float $precision = 1): CarbonInterface
Ceil the current instance decade with given precision.
Ceil the current instance decade with given precision.
|
#
|
public
|
ceilDecades(float $precision = 1): CarbonInterface
Ceil the current instance decade with given precision.
Ceil the current instance decade with given precision.
|
#
|
public
|
roundQuarter(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance quarter with given precision using the given function.
Round the current instance quarter with given precision using the given function.
|
#
|
public
|
roundQuarters(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance quarter with given precision using the given function.
Round the current instance quarter with given precision using the given function.
|
#
|
public
|
floorQuarter(float $precision = 1): CarbonInterface
Truncate the current instance quarter with given precision.
Truncate the current instance quarter with given precision.
|
#
|
public
|
floorQuarters(float $precision = 1): CarbonInterface
Truncate the current instance quarter with given precision.
Truncate the current instance quarter with given precision.
|
#
|
public
|
ceilQuarter(float $precision = 1): CarbonInterface
Ceil the current instance quarter with given precision.
Ceil the current instance quarter with given precision.
|
#
|
public
|
ceilQuarters(float $precision = 1): CarbonInterface
Ceil the current instance quarter with given precision.
Ceil the current instance quarter with given precision.
|
#
|
public
|
roundMillisecond(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance millisecond with given precision using the given function.
Round the current instance millisecond with given precision using the given function.
|
#
|
public
|
roundMilliseconds(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance millisecond with given precision using the given function.
Round the current instance millisecond with given precision using the given function.
|
#
|
public
|
floorMillisecond(float $precision = 1): CarbonInterface
Truncate the current instance millisecond with given precision.
Truncate the current instance millisecond with given precision.
|
#
|
public
|
floorMilliseconds(float $precision = 1): CarbonInterface
Truncate the current instance millisecond with given precision.
Truncate the current instance millisecond with given precision.
|
#
|
public
|
ceilMillisecond(float $precision = 1): CarbonInterface
Ceil the current instance millisecond with given precision.
Ceil the current instance millisecond with given precision.
|
#
|
public
|
ceilMilliseconds(float $precision = 1): CarbonInterface
Ceil the current instance millisecond with given precision.
Ceil the current instance millisecond with given precision.
|
#
|
public
|
roundMicrosecond(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance microsecond with given precision using the given function.
Round the current instance microsecond with given precision using the given function.
|
#
|
public
|
roundMicroseconds(float $precision = 1, string $function = "\"round\""): CarbonInterface
Round the current instance microsecond with given precision using the given function.
Round the current instance microsecond with given precision using the given function.
|
#
|
public
|
floorMicrosecond(float $precision = 1): CarbonInterface
Truncate the current instance microsecond with given precision.
Truncate the current instance microsecond with given precision.
|
#
|
public
|
floorMicroseconds(float $precision = 1): CarbonInterface
Truncate the current instance microsecond with given precision.
Truncate the current instance microsecond with given precision.
|
#
|
public
|
ceilMicrosecond(float $precision = 1): CarbonInterface
Ceil the current instance microsecond with given precision.
Ceil the current instance microsecond with given precision.
|
#
|
public
|
ceilMicroseconds(float $precision = 1): CarbonInterface
Ceil the current instance microsecond with given precision.
Ceil the current instance microsecond with given precision.
|
#
|
public
|
shortAbsoluteDiffForHumans(DateTimeInterface $other = null, int $parts = 1): string
Get the difference (short format, 'Absolute' mode) in a human readable format in the current locale. ($other and $parts…
Get the difference (short format, 'Absolute' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
|
#
|
public
|
longAbsoluteDiffForHumans(DateTimeInterface $other = null, int $parts = 1): string
Get the difference (long format, 'Absolute' mode) in a human readable format in the current locale. ($other and $parts…
Get the difference (long format, 'Absolute' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
|
#
|
public
|
shortRelativeDiffForHumans(DateTimeInterface $other = null, int $parts = 1): string
Get the difference (short format, 'Relative' mode) in a human readable format in the current locale. ($other and $parts…
Get the difference (short format, 'Relative' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
|
#
|
public
|
longRelativeDiffForHumans(DateTimeInterface $other = null, int $parts = 1): string
Get the difference (long format, 'Relative' mode) in a human readable format in the current locale. ($other and $parts…
Get the difference (long format, 'Relative' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
|
#
|
public
|
shortRelativeToNowDiffForHumans(DateTimeInterface $other = null, int $parts = 1): string
Get the difference (short format, 'RelativeToNow' mode) in a human readable format in the current locale. ($other and …
Get the difference (short format, 'RelativeToNow' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
|
#
|
public
|
longRelativeToNowDiffForHumans(DateTimeInterface $other = null, int $parts = 1): string
Get the difference (long format, 'RelativeToNow' mode) in a human readable format in the current locale. ($other and …
Get the difference (long format, 'RelativeToNow' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
|
#
|
public
|
shortRelativeToOtherDiffForHumans(DateTimeInterface $other = null, int $parts = 1): string
Get the difference (short format, 'RelativeToOther' mode) in a human readable format in the current locale. ($other and…
Get the difference (short format, 'RelativeToOther' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
|
#
|
public
|
longRelativeToOtherDiffForHumans(DateTimeInterface $other = null, int $parts = 1): string
Get the difference (long format, 'RelativeToOther' mode) in a human readable format in the current locale. ($other and …
Get the difference (long format, 'RelativeToOther' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
|
#
|