| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | /** |
| 6 | * This file is part of the Carbon package. |
| 7 | * |
| 8 | * (c) Brian Nesbitt <[email protected]> |
| 9 | * |
| 10 | * For the full copyright and license information, please view the LICENSE |
| 11 | * file that was distributed with this source code. |
| 12 | */ |
| 13 | |
| 14 | namespace Carbon; |
| 15 | |
| 16 | use Carbon\Traits\Date; |
| 17 | use DateTime; |
| 18 | use DateTimeInterface; |
| 19 | |
| 20 | /** |
| 21 | * A simple API extension for DateTime. |
| 22 | * |
| 23 | * <autodoc generated by `composer phpdoc`> |
| 24 | * |
| 25 | * @property string $localeDayOfWeek the day of week in current locale |
| 26 | * @property string $shortLocaleDayOfWeek the abbreviated day of week in current locale |
| 27 | * @property string $localeMonth the month in current locale |
| 28 | * @property string $shortLocaleMonth the abbreviated month in current locale |
| 29 | * @property int $year |
| 30 | * @property int $yearIso |
| 31 | * @property int $month |
| 32 | * @property int $day |
| 33 | * @property int $hour |
| 34 | * @property int $minute |
| 35 | * @property int $second |
| 36 | * @property int $micro |
| 37 | * @property int $microsecond |
| 38 | * @property int $dayOfWeekIso 1 (for Monday) through 7 (for Sunday) |
| 39 | * @property int|float|string $timestamp seconds since the Unix Epoch |
| 40 | * @property string $englishDayOfWeek the day of week in English |
| 41 | * @property string $shortEnglishDayOfWeek the abbreviated day of week in English |
| 42 | * @property string $englishMonth the month in English |
| 43 | * @property string $shortEnglishMonth the abbreviated month in English |
| 44 | * @property int $milliseconds |
| 45 | * @property int $millisecond |
| 46 | * @property int $milli |
| 47 | * @property int $week 1 through 53 |
| 48 | * @property int $isoWeek 1 through 53 |
| 49 | * @property int $weekYear year according to week format |
| 50 | * @property int $isoWeekYear year according to ISO week format |
| 51 | * @property int $age does a diffInYears() with default parameters |
| 52 | * @property int $offset the timezone offset in seconds from UTC |
| 53 | * @property int $offsetMinutes the timezone offset in minutes from UTC |
| 54 | * @property int $offsetHours the timezone offset in hours from UTC |
| 55 | * @property CarbonTimeZone $timezone the current timezone |
| 56 | * @property CarbonTimeZone $tz alias of $timezone |
| 57 | * @property int $centuryOfMillennium The value of the century starting from the beginning of the current millennium |
| 58 | * @property int $dayOfCentury The value of the day starting from the beginning of the current century |
| 59 | * @property int $dayOfDecade The value of the day starting from the beginning of the current decade |
| 60 | * @property int $dayOfMillennium The value of the day starting from the beginning of the current millennium |
| 61 | * @property int $dayOfMonth The value of the day starting from the beginning of the current month |
| 62 | * @property int $dayOfQuarter The value of the day starting from the beginning of the current quarter |
| 63 | * @property int $dayOfWeek 0 (for Sunday) through 6 (for Saturday) |
| 64 | * @property int $dayOfYear 1 through 366 |
| 65 | * @property int $decadeOfCentury The value of the decade starting from the beginning of the current century |
| 66 | * @property int $decadeOfMillennium The value of the decade starting from the beginning of the current millennium |
| 67 | * @property int $hourOfCentury The value of the hour starting from the beginning of the current century |
| 68 | * @property int $hourOfDay The value of the hour starting from the beginning of the current day |
| 69 | * @property int $hourOfDecade The value of the hour starting from the beginning of the current decade |
| 70 | * @property int $hourOfMillennium The value of the hour starting from the beginning of the current millennium |
| 71 | * @property int $hourOfMonth The value of the hour starting from the beginning of the current month |
| 72 | * @property int $hourOfQuarter The value of the hour starting from the beginning of the current quarter |
| 73 | * @property int $hourOfWeek The value of the hour starting from the beginning of the current week |
| 74 | * @property int $hourOfYear The value of the hour starting from the beginning of the current year |
| 75 | * @property int $microsecondOfCentury The value of the microsecond starting from the beginning of the current century |
| 76 | * @property int $microsecondOfDay The value of the microsecond starting from the beginning of the current day |
| 77 | * @property int $microsecondOfDecade The value of the microsecond starting from the beginning of the current decade |
| 78 | * @property int $microsecondOfHour The value of the microsecond starting from the beginning of the current hour |
| 79 | * @property int $microsecondOfMillennium The value of the microsecond starting from the beginning of the current millennium |
| 80 | * @property int $microsecondOfMillisecond The value of the microsecond starting from the beginning of the current millisecond |
| 81 | * @property int $microsecondOfMinute The value of the microsecond starting from the beginning of the current minute |
| 82 | * @property int $microsecondOfMonth The value of the microsecond starting from the beginning of the current month |
| 83 | * @property int $microsecondOfQuarter The value of the microsecond starting from the beginning of the current quarter |
| 84 | * @property int $microsecondOfSecond The value of the microsecond starting from the beginning of the current second |
| 85 | * @property int $microsecondOfWeek The value of the microsecond starting from the beginning of the current week |
| 86 | * @property int $microsecondOfYear The value of the microsecond starting from the beginning of the current year |
| 87 | * @property int $millisecondOfCentury The value of the millisecond starting from the beginning of the current century |
| 88 | * @property int $millisecondOfDay The value of the millisecond starting from the beginning of the current day |
| 89 | * @property int $millisecondOfDecade The value of the millisecond starting from the beginning of the current decade |
| 90 | * @property int $millisecondOfHour The value of the millisecond starting from the beginning of the current hour |
| 91 | * @property int $millisecondOfMillennium The value of the millisecond starting from the beginning of the current millennium |
| 92 | * @property int $millisecondOfMinute The value of the millisecond starting from the beginning of the current minute |
| 93 | * @property int $millisecondOfMonth The value of the millisecond starting from the beginning of the current month |
| 94 | * @property int $millisecondOfQuarter The value of the millisecond starting from the beginning of the current quarter |
| 95 | * @property int $millisecondOfSecond The value of the millisecond starting from the beginning of the current second |
| 96 | * @property int $millisecondOfWeek The value of the millisecond starting from the beginning of the current week |
| 97 | * @property int $millisecondOfYear The value of the millisecond starting from the beginning of the current year |
| 98 | * @property int $minuteOfCentury The value of the minute starting from the beginning of the current century |
| 99 | * @property int $minuteOfDay The value of the minute starting from the beginning of the current day |
| 100 | * @property int $minuteOfDecade The value of the minute starting from the beginning of the current decade |
| 101 | * @property int $minuteOfHour The value of the minute starting from the beginning of the current hour |
| 102 | * @property int $minuteOfMillennium The value of the minute starting from the beginning of the current millennium |
| 103 | * @property int $minuteOfMonth The value of the minute starting from the beginning of the current month |
| 104 | * @property int $minuteOfQuarter The value of the minute starting from the beginning of the current quarter |
| 105 | * @property int $minuteOfWeek The value of the minute starting from the beginning of the current week |
| 106 | * @property int $minuteOfYear The value of the minute starting from the beginning of the current year |
| 107 | * @property int $monthOfCentury The value of the month starting from the beginning of the current century |
| 108 | * @property int $monthOfDecade The value of the month starting from the beginning of the current decade |
| 109 | * @property int $monthOfMillennium The value of the month starting from the beginning of the current millennium |
| 110 | * @property int $monthOfQuarter The value of the month starting from the beginning of the current quarter |
| 111 | * @property int $monthOfYear The value of the month starting from the beginning of the current year |
| 112 | * @property int $quarterOfCentury The value of the quarter starting from the beginning of the current century |
| 113 | * @property int $quarterOfDecade The value of the quarter starting from the beginning of the current decade |
| 114 | * @property int $quarterOfMillennium The value of the quarter starting from the beginning of the current millennium |
| 115 | * @property int $quarterOfYear The value of the quarter starting from the beginning of the current year |
| 116 | * @property int $secondOfCentury The value of the second starting from the beginning of the current century |
| 117 | * @property int $secondOfDay The value of the second starting from the beginning of the current day |
| 118 | * @property int $secondOfDecade The value of the second starting from the beginning of the current decade |
| 119 | * @property int $secondOfHour The value of the second starting from the beginning of the current hour |
| 120 | * @property int $secondOfMillennium The value of the second starting from the beginning of the current millennium |
| 121 | * @property int $secondOfMinute The value of the second starting from the beginning of the current minute |
| 122 | * @property int $secondOfMonth The value of the second starting from the beginning of the current month |
| 123 | * @property int $secondOfQuarter The value of the second starting from the beginning of the current quarter |
| 124 | * @property int $secondOfWeek The value of the second starting from the beginning of the current week |
| 125 | * @property int $secondOfYear The value of the second starting from the beginning of the current year |
| 126 | * @property int $weekOfCentury The value of the week starting from the beginning of the current century |
| 127 | * @property int $weekOfDecade The value of the week starting from the beginning of the current decade |
| 128 | * @property int $weekOfMillennium The value of the week starting from the beginning of the current millennium |
| 129 | * @property int $weekOfMonth 1 through 5 |
| 130 | * @property int $weekOfQuarter The value of the week starting from the beginning of the current quarter |
| 131 | * @property int $weekOfYear ISO-8601 week number of year, weeks starting on Monday |
| 132 | * @property int $yearOfCentury The value of the year starting from the beginning of the current century |
| 133 | * @property int $yearOfDecade The value of the year starting from the beginning of the current decade |
| 134 | * @property int $yearOfMillennium The value of the year starting from the beginning of the current millennium |
| 135 | * @property-read string $latinMeridiem "am"/"pm" (Ante meridiem or Post meridiem latin lowercase mark) |
| 136 | * @property-read string $latinUpperMeridiem "AM"/"PM" (Ante meridiem or Post meridiem latin uppercase mark) |
| 137 | * @property-read string $timezoneAbbreviatedName the current timezone abbreviated name |
| 138 | * @property-read string $tzAbbrName alias of $timezoneAbbreviatedName |
| 139 | * @property-read string $dayName long name of weekday translated according to Carbon locale, in english if no translation available for current language |
| 140 | * @property-read string $shortDayName short name of weekday translated according to Carbon locale, in english if no translation available for current language |
| 141 | * @property-read string $minDayName very short name of weekday translated according to Carbon locale, in english if no translation available for current language |
| 142 | * @property-read string $monthName long name of month translated according to Carbon locale, in english if no translation available for current language |
| 143 | * @property-read string $shortMonthName short name of month translated according to Carbon locale, in english if no translation available for current language |
| 144 | * @property-read string $meridiem lowercase meridiem mark translated according to Carbon locale, in latin if no translation available for current language |
| 145 | * @property-read string $upperMeridiem uppercase meridiem mark translated according to Carbon locale, in latin if no translation available for current language |
| 146 | * @property-read int $noZeroHour current hour from 1 to 24 |
| 147 | * @property-read int $isoWeeksInYear 51 through 53 |
| 148 | * @property-read int $weekNumberInMonth 1 through 5 |
| 149 | * @property-read int $firstWeekDay 0 through 6 |
| 150 | * @property-read int $lastWeekDay 0 through 6 |
| 151 | * @property-read int $quarter the quarter of this instance, 1 - 4 |
| 152 | * @property-read int $decade the decade of this instance |
| 153 | * @property-read int $century the century of this instance |
| 154 | * @property-read int $millennium the millennium of this instance |
| 155 | * @property-read bool $dst daylight savings time indicator, true if DST, false otherwise |
| 156 | * @property-read bool $local checks if the timezone is local, true if local, false otherwise |
| 157 | * @property-read bool $utc checks if the timezone is UTC, true if UTC, false otherwise |
| 158 | * @property-read string $timezoneName the current timezone name |
| 159 | * @property-read string $tzName alias of $timezoneName |
| 160 | * @property-read string $locale locale of the current instance |
| 161 | * @property-read int $centuriesInMillennium The number of centuries contained in the current millennium |
| 162 | * @property-read int $daysInCentury The number of days contained in the current century |
| 163 | * @property-read int $daysInDecade The number of days contained in the current decade |
| 164 | * @property-read int $daysInMillennium The number of days contained in the current millennium |
| 165 | * @property-read int $daysInMonth number of days in the given month |
| 166 | * @property-read int $daysInQuarter The number of days contained in the current quarter |
| 167 | * @property-read int $daysInWeek The number of days contained in the current week |
| 168 | * @property-read int $daysInYear 365 or 366 |
| 169 | * @property-read int $decadesInCentury The number of decades contained in the current century |
| 170 | * @property-read int $decadesInMillennium The number of decades contained in the current millennium |
| 171 | * @property-read int $hoursInCentury The number of hours contained in the current century |
| 172 | * @property-read int $hoursInDay The number of hours contained in the current day |
| 173 | * @property-read int $hoursInDecade The number of hours contained in the current decade |
| 174 | * @property-read int $hoursInMillennium The number of hours contained in the current millennium |
| 175 | * @property-read int $hoursInMonth The number of hours contained in the current month |
| 176 | * @property-read int $hoursInQuarter The number of hours contained in the current quarter |
| 177 | * @property-read int $hoursInWeek The number of hours contained in the current week |
| 178 | * @property-read int $hoursInYear The number of hours contained in the current year |
| 179 | * @property-read int $microsecondsInCentury The number of microseconds contained in the current century |
| 180 | * @property-read int $microsecondsInDay The number of microseconds contained in the current day |
| 181 | * @property-read int $microsecondsInDecade The number of microseconds contained in the current decade |
| 182 | * @property-read int $microsecondsInHour The number of microseconds contained in the current hour |
| 183 | * @property-read int $microsecondsInMillennium The number of microseconds contained in the current millennium |
| 184 | * @property-read int $microsecondsInMillisecond The number of microseconds contained in the current millisecond |
| 185 | * @property-read int $microsecondsInMinute The number of microseconds contained in the current minute |
| 186 | * @property-read int $microsecondsInMonth The number of microseconds contained in the current month |
| 187 | * @property-read int $microsecondsInQuarter The number of microseconds contained in the current quarter |
| 188 | * @property-read int $microsecondsInSecond The number of microseconds contained in the current second |
| 189 | * @property-read int $microsecondsInWeek The number of microseconds contained in the current week |
| 190 | * @property-read int $microsecondsInYear The number of microseconds contained in the current year |
| 191 | * @property-read int $millisecondsInCentury The number of milliseconds contained in the current century |
| 192 | * @property-read int $millisecondsInDay The number of milliseconds contained in the current day |
| 193 | * @property-read int $millisecondsInDecade The number of milliseconds contained in the current decade |
| 194 | * @property-read int $millisecondsInHour The number of milliseconds contained in the current hour |
| 195 | * @property-read int $millisecondsInMillennium The number of milliseconds contained in the current millennium |
| 196 | * @property-read int $millisecondsInMinute The number of milliseconds contained in the current minute |
| 197 | * @property-read int $millisecondsInMonth The number of milliseconds contained in the current month |
| 198 | * @property-read int $millisecondsInQuarter The number of milliseconds contained in the current quarter |
| 199 | * @property-read int $millisecondsInSecond The number of milliseconds contained in the current second |
| 200 | * @property-read int $millisecondsInWeek The number of milliseconds contained in the current week |
| 201 | * @property-read int $millisecondsInYear The number of milliseconds contained in the current year |
| 202 | * @property-read int $minutesInCentury The number of minutes contained in the current century |
| 203 | * @property-read int $minutesInDay The number of minutes contained in the current day |
| 204 | * @property-read int $minutesInDecade The number of minutes contained in the current decade |
| 205 | * @property-read int $minutesInHour The number of minutes contained in the current hour |
| 206 | * @property-read int $minutesInMillennium The number of minutes contained in the current millennium |
| 207 | * @property-read int $minutesInMonth The number of minutes contained in the current month |
| 208 | * @property-read int $minutesInQuarter The number of minutes contained in the current quarter |
| 209 | * @property-read int $minutesInWeek The number of minutes contained in the current week |
| 210 | * @property-read int $minutesInYear The number of minutes contained in the current year |
| 211 | * @property-read int $monthsInCentury The number of months contained in the current century |
| 212 | * @property-read int $monthsInDecade The number of months contained in the current decade |
| 213 | * @property-read int $monthsInMillennium The number of months contained in the current millennium |
| 214 | * @property-read int $monthsInQuarter The number of months contained in the current quarter |
| 215 | * @property-read int $monthsInYear The number of months contained in the current year |
| 216 | * @property-read int $quartersInCentury The number of quarters contained in the current century |
| 217 | * @property-read int $quartersInDecade The number of quarters contained in the current decade |
| 218 | * @property-read int $quartersInMillennium The number of quarters contained in the current millennium |
| 219 | * @property-read int $quartersInYear The number of quarters contained in the current year |
| 220 | * @property-read int $secondsInCentury The number of seconds contained in the current century |
| 221 | * @property-read int $secondsInDay The number of seconds contained in the current day |
| 222 | * @property-read int $secondsInDecade The number of seconds contained in the current decade |
| 223 | * @property-read int $secondsInHour The number of seconds contained in the current hour |
| 224 | * @property-read int $secondsInMillennium The number of seconds contained in the current millennium |
| 225 | * @property-read int $secondsInMinute The number of seconds contained in the current minute |
| 226 | * @property-read int $secondsInMonth The number of seconds contained in the current month |
| 227 | * @property-read int $secondsInQuarter The number of seconds contained in the current quarter |
| 228 | * @property-read int $secondsInWeek The number of seconds contained in the current week |
| 229 | * @property-read int $secondsInYear The number of seconds contained in the current year |
| 230 | * @property-read int $weeksInCentury The number of weeks contained in the current century |
| 231 | * @property-read int $weeksInDecade The number of weeks contained in the current decade |
| 232 | * @property-read int $weeksInMillennium The number of weeks contained in the current millennium |
| 233 | * @property-read int $weeksInMonth The number of weeks contained in the current month |
| 234 | * @property-read int $weeksInQuarter The number of weeks contained in the current quarter |
| 235 | * @property-read int $weeksInYear 51 through 53 |
| 236 | * @property-read int $yearsInCentury The number of years contained in the current century |
| 237 | * @property-read int $yearsInDecade The number of years contained in the current decade |
| 238 | * @property-read int $yearsInMillennium The number of years contained in the current millennium |
| 239 | * |
| 240 | * @method bool isUtc() Check if the current instance has UTC timezone. (Both isUtc and isUTC cases are valid.) |
| 241 | * @method bool isLocal() Check if the current instance has non-UTC timezone. |
| 242 | * @method bool isValid() Check if the current instance is a valid date. |
| 243 | * @method bool isDST() Check if the current instance is in a daylight saving time. |
| 244 | * @method bool isSunday() Checks if the instance day is sunday. |
| 245 | * @method bool isMonday() Checks if the instance day is monday. |
| 246 | * @method bool isTuesday() Checks if the instance day is tuesday. |
| 247 | * @method bool isWednesday() Checks if the instance day is wednesday. |
| 248 | * @method bool isThursday() Checks if the instance day is thursday. |
| 249 | * @method bool isFriday() Checks if the instance day is friday. |
| 250 | * @method bool isSaturday() Checks if the instance day is saturday. |
| 251 | * @method bool isSameYear(DateTimeInterface|string $date) Checks if the given date is in the same year as the instance. If null passed, compare to now (with the same timezone). |
| 252 | * @method bool isCurrentYear() Checks if the instance is in the same year as the current moment. |
| 253 | * @method bool isNextYear() Checks if the instance is in the same year as the current moment next year. |
| 254 | * @method bool isLastYear() Checks if the instance is in the same year as the current moment last year. |
| 255 | * @method bool isCurrentMonth() Checks if the instance is in the same month as the current moment. |
| 256 | * @method bool isNextMonth() Checks if the instance is in the same month as the current moment next month. |
| 257 | * @method bool isLastMonth() Checks if the instance is in the same month as the current moment last month. |
| 258 | * @method bool isSameWeek(DateTimeInterface|string $date) Checks if the given date is in the same week as the instance. If null passed, compare to now (with the same timezone). |
| 259 | * @method bool isCurrentWeek() Checks if the instance is in the same week as the current moment. |
| 260 | * @method bool isNextWeek() Checks if the instance is in the same week as the current moment next week. |
| 261 | * @method bool isLastWeek() Checks if the instance is in the same week as the current moment last week. |
| 262 | * @method bool isSameDay(DateTimeInterface|string $date) Checks if the given date is in the same day as the instance. If null passed, compare to now (with the same timezone). |
| 263 | * @method bool isCurrentDay() Checks if the instance is in the same day as the current moment. |
| 264 | * @method bool isNextDay() Checks if the instance is in the same day as the current moment next day. |
| 265 | * @method bool isLastDay() Checks if the instance is in the same day as the current moment last day. |
| 266 | * @method bool isSameHour(DateTimeInterface|string $date) Checks if the given date is in the same hour as the instance. If null passed, compare to now (with the same timezone). |
| 267 | * @method bool isCurrentHour() Checks if the instance is in the same hour as the current moment. |
| 268 | * @method bool isNextHour() Checks if the instance is in the same hour as the current moment next hour. |
| 269 | * @method bool isLastHour() Checks if the instance is in the same hour as the current moment last hour. |
| 270 | * @method bool isSameMinute(DateTimeInterface|string $date) Checks if the given date is in the same minute as the instance. If null passed, compare to now (with the same timezone). |
| 271 | * @method bool isCurrentMinute() Checks if the instance is in the same minute as the current moment. |
| 272 | * @method bool isNextMinute() Checks if the instance is in the same minute as the current moment next minute. |
| 273 | * @method bool isLastMinute() Checks if the instance is in the same minute as the current moment last minute. |
| 274 | * @method bool isSameSecond(DateTimeInterface|string $date) Checks if the given date is in the same second as the instance. If null passed, compare to now (with the same timezone). |
| 275 | * @method bool isCurrentSecond() Checks if the instance is in the same second as the current moment. |
| 276 | * @method bool isNextSecond() Checks if the instance is in the same second as the current moment next second. |
| 277 | * @method bool isLastSecond() Checks if the instance is in the same second as the current moment last second. |
| 278 | * @method bool isSameMilli(DateTimeInterface|string $date) Checks if the given date is in the same millisecond as the instance. If null passed, compare to now (with the same timezone). |
| 279 | * @method bool isCurrentMilli() Checks if the instance is in the same millisecond as the current moment. |
| 280 | * @method bool isNextMilli() Checks if the instance is in the same millisecond as the current moment next millisecond. |
| 281 | * @method bool isLastMilli() Checks if the instance is in the same millisecond as the current moment last millisecond. |
| 282 | * @method bool isSameMillisecond(DateTimeInterface|string $date) Checks if the given date is in the same millisecond as the instance. If null passed, compare to now (with the same timezone). |
| 283 | * @method bool isCurrentMillisecond() Checks if the instance is in the same millisecond as the current moment. |
| 284 | * @method bool isNextMillisecond() Checks if the instance is in the same millisecond as the current moment next millisecond. |
| 285 | * @method bool isLastMillisecond() Checks if the instance is in the same millisecond as the current moment last millisecond. |
| 286 | * @method bool isSameMicro(DateTimeInterface|string $date) Checks if the given date is in the same microsecond as the instance. If null passed, compare to now (with the same timezone). |
| 287 | * @method bool isCurrentMicro() Checks if the instance is in the same microsecond as the current moment. |
| 288 | * @method bool isNextMicro() Checks if the instance is in the same microsecond as the current moment next microsecond. |
| 289 | * @method bool isLastMicro() Checks if the instance is in the same microsecond as the current moment last microsecond. |
| 290 | * @method bool isSameMicrosecond(DateTimeInterface|string $date) Checks if the given date is in the same microsecond as the instance. If null passed, compare to now (with the same timezone). |
| 291 | * @method bool isCurrentMicrosecond() Checks if the instance is in the same microsecond as the current moment. |
| 292 | * @method bool isNextMicrosecond() Checks if the instance is in the same microsecond as the current moment next microsecond. |
| 293 | * @method bool isLastMicrosecond() Checks if the instance is in the same microsecond as the current moment last microsecond. |
| 294 | * @method bool isSameDecade(DateTimeInterface|string $date) Checks if the given date is in the same decade as the instance. If null passed, compare to now (with the same timezone). |
| 295 | * @method bool isCurrentDecade() Checks if the instance is in the same decade as the current moment. |
| 296 | * @method bool isNextDecade() Checks if the instance is in the same decade as the current moment next decade. |
| 297 | * @method bool isLastDecade() Checks if the instance is in the same decade as the current moment last decade. |
| 298 | * @method bool isSameCentury(DateTimeInterface|string $date) Checks if the given date is in the same century as the instance. If null passed, compare to now (with the same timezone). |
| 299 | * @method bool isCurrentCentury() Checks if the instance is in the same century as the current moment. |
| 300 | * @method bool isNextCentury() Checks if the instance is in the same century as the current moment next century. |
| 301 | * @method bool isLastCentury() Checks if the instance is in the same century as the current moment last century. |
| 302 | * @method bool isSameMillennium(DateTimeInterface|string $date) Checks if the given date is in the same millennium as the instance. If null passed, compare to now (with the same timezone). |
| 303 | * @method bool isCurrentMillennium() Checks if the instance is in the same millennium as the current moment. |
| 304 | * @method bool isNextMillennium() Checks if the instance is in the same millennium as the current moment next millennium. |
| 305 | * @method bool isLastMillennium() Checks if the instance is in the same millennium as the current moment last millennium. |
| 306 | * @method bool isCurrentQuarter() Checks if the instance is in the same quarter as the current moment. |
| 307 | * @method bool isNextQuarter() Checks if the instance is in the same quarter as the current moment next quarter. |
| 308 | * @method bool isLastQuarter() Checks if the instance is in the same quarter as the current moment last quarter. |
| 309 | * @method $this years(int $value) Set current instance year to the given value. |
| 310 | * @method $this year(int $value) Set current instance year to the given value. |
| 311 | * @method $this setYears(int $value) Set current instance year to the given value. |
| 312 | * @method $this setYear(int $value) Set current instance year to the given value. |
| 313 | * @method $this months(Month|int $value) Set current instance month to the given value. |
| 314 | * @method $this month(Month|int $value) Set current instance month to the given value. |
| 315 | * @method $this setMonths(Month|int $value) Set current instance month to the given value. |
| 316 | * @method $this setMonth(Month|int $value) Set current instance month to the given value. |
| 317 | * @method $this days(int $value) Set current instance day to the given value. |
| 318 | * @method $this day(int $value) Set current instance day to the given value. |
| 319 | * @method $this setDays(int $value) Set current instance day to the given value. |
| 320 | * @method $this setDay(int $value) Set current instance day to the given value. |
| 321 | * @method $this hours(int $value) Set current instance hour to the given value. |
| 322 | * @method $this hour(int $value) Set current instance hour to the given value. |
| 323 | * @method $this setHours(int $value) Set current instance hour to the given value. |
| 324 | * @method $this setHour(int $value) Set current instance hour to the given value. |
| 325 | * @method $this minutes(int $value) Set current instance minute to the given value. |
| 326 | * @method $this minute(int $value) Set current instance minute to the given value. |
| 327 | * @method $this setMinutes(int $value) Set current instance minute to the given value. |
| 328 | * @method $this setMinute(int $value) Set current instance minute to the given value. |
| 329 | * @method $this seconds(int $value) Set current instance second to the given value. |
| 330 | * @method $this second(int $value) Set current instance second to the given value. |
| 331 | * @method $this setSeconds(int $value) Set current instance second to the given value. |
| 332 | * @method $this setSecond(int $value) Set current instance second to the given value. |
| 333 | * @method $this millis(int $value) Set current instance millisecond to the given value. |
| 334 | * @method $this milli(int $value) Set current instance millisecond to the given value. |
| 335 | * @method $this setMillis(int $value) Set current instance millisecond to the given value. |
| 336 | * @method $this setMilli(int $value) Set current instance millisecond to the given value. |
| 337 | * @method $this milliseconds(int $value) Set current instance millisecond to the given value. |
| 338 | * @method $this millisecond(int $value) Set current instance millisecond to the given value. |
| 339 | * @method $this setMilliseconds(int $value) Set current instance millisecond to the given value. |
| 340 | * @method $this setMillisecond(int $value) Set current instance millisecond to the given value. |
| 341 | * @method $this micros(int $value) Set current instance microsecond to the given value. |
| 342 | * @method $this micro(int $value) Set current instance microsecond to the given value. |
| 343 | * @method $this setMicros(int $value) Set current instance microsecond to the given value. |
| 344 | * @method $this setMicro(int $value) Set current instance microsecond to the given value. |
| 345 | * @method $this microseconds(int $value) Set current instance microsecond to the given value. |
| 346 | * @method $this microsecond(int $value) Set current instance microsecond to the given value. |
| 347 | * @method $this setMicroseconds(int $value) Set current instance microsecond to the given value. |
| 348 | * @method self setMicrosecond(int $value) Set current instance microsecond to the given value. |
| 349 | * @method $this addYears(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval). |
| 350 | * @method $this addYear() Add one year to the instance (using date interval). |
| 351 | * @method $this subYears(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval). |
| 352 | * @method $this subYear() Sub one year to the instance (using date interval). |
| 353 | * @method $this addYearsWithOverflow(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. |
| 354 | * @method $this addYearWithOverflow() Add one year to the instance (using date interval) with overflow explicitly allowed. |
| 355 | * @method $this subYearsWithOverflow(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. |
| 356 | * @method $this subYearWithOverflow() Sub one year to the instance (using date interval) with overflow explicitly allowed. |
| 357 | * @method $this addYearsWithoutOverflow(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 358 | * @method $this addYearWithoutOverflow() Add one year to the instance (using date interval) with overflow explicitly forbidden. |
| 359 | * @method $this subYearsWithoutOverflow(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 360 | * @method $this subYearWithoutOverflow() Sub one year to the instance (using date interval) with overflow explicitly forbidden. |
| 361 | * @method $this addYearsWithNoOverflow(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 362 | * @method $this addYearWithNoOverflow() Add one year to the instance (using date interval) with overflow explicitly forbidden. |
| 363 | * @method $this subYearsWithNoOverflow(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 364 | * @method $this subYearWithNoOverflow() Sub one year to the instance (using date interval) with overflow explicitly forbidden. |
| 365 | * @method $this addYearsNoOverflow(int|float $value = 1) Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 366 | * @method $this addYearNoOverflow() Add one year to the instance (using date interval) with overflow explicitly forbidden. |
| 367 | * @method $this subYearsNoOverflow(int|float $value = 1) Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 368 | * @method $this subYearNoOverflow() Sub one year to the instance (using date interval) with overflow explicitly forbidden. |
| 369 | * @method $this addMonths(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval). |
| 370 | * @method $this addMonth() Add one month to the instance (using date interval). |
| 371 | * @method $this subMonths(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval). |
| 372 | * @method $this subMonth() Sub one month to the instance (using date interval). |
| 373 | * @method $this addMonthsWithOverflow(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. |
| 374 | * @method $this addMonthWithOverflow() Add one month to the instance (using date interval) with overflow explicitly allowed. |
| 375 | * @method $this subMonthsWithOverflow(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. |
| 376 | * @method $this subMonthWithOverflow() Sub one month to the instance (using date interval) with overflow explicitly allowed. |
| 377 | * @method $this addMonthsWithoutOverflow(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 378 | * @method $this addMonthWithoutOverflow() Add one month to the instance (using date interval) with overflow explicitly forbidden. |
| 379 | * @method $this subMonthsWithoutOverflow(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 380 | * @method $this subMonthWithoutOverflow() Sub one month to the instance (using date interval) with overflow explicitly forbidden. |
| 381 | * @method $this addMonthsWithNoOverflow(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 382 | * @method $this addMonthWithNoOverflow() Add one month to the instance (using date interval) with overflow explicitly forbidden. |
| 383 | * @method $this subMonthsWithNoOverflow(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 384 | * @method $this subMonthWithNoOverflow() Sub one month to the instance (using date interval) with overflow explicitly forbidden. |
| 385 | * @method $this addMonthsNoOverflow(int|float $value = 1) Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 386 | * @method $this addMonthNoOverflow() Add one month to the instance (using date interval) with overflow explicitly forbidden. |
| 387 | * @method $this subMonthsNoOverflow(int|float $value = 1) Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 388 | * @method $this subMonthNoOverflow() Sub one month to the instance (using date interval) with overflow explicitly forbidden. |
| 389 | * @method $this addDays(int|float $value = 1) Add days (the $value count passed in) to the instance (using date interval). |
| 390 | * @method $this addDay() Add one day to the instance (using date interval). |
| 391 | * @method $this subDays(int|float $value = 1) Sub days (the $value count passed in) to the instance (using date interval). |
| 392 | * @method $this subDay() Sub one day to the instance (using date interval). |
| 393 | * @method $this addHours(int|float $value = 1) Add hours (the $value count passed in) to the instance (using date interval). |
| 394 | * @method $this addHour() Add one hour to the instance (using date interval). |
| 395 | * @method $this subHours(int|float $value = 1) Sub hours (the $value count passed in) to the instance (using date interval). |
| 396 | * @method $this subHour() Sub one hour to the instance (using date interval). |
| 397 | * @method $this addMinutes(int|float $value = 1) Add minutes (the $value count passed in) to the instance (using date interval). |
| 398 | * @method $this addMinute() Add one minute to the instance (using date interval). |
| 399 | * @method $this subMinutes(int|float $value = 1) Sub minutes (the $value count passed in) to the instance (using date interval). |
| 400 | * @method $this subMinute() Sub one minute to the instance (using date interval). |
| 401 | * @method $this addSeconds(int|float $value = 1) Add seconds (the $value count passed in) to the instance (using date interval). |
| 402 | * @method $this addSecond() Add one second to the instance (using date interval). |
| 403 | * @method $this subSeconds(int|float $value = 1) Sub seconds (the $value count passed in) to the instance (using date interval). |
| 404 | * @method $this subSecond() Sub one second to the instance (using date interval). |
| 405 | * @method $this addMillis(int|float $value = 1) Add milliseconds (the $value count passed in) to the instance (using date interval). |
| 406 | * @method $this addMilli() Add one millisecond to the instance (using date interval). |
| 407 | * @method $this subMillis(int|float $value = 1) Sub milliseconds (the $value count passed in) to the instance (using date interval). |
| 408 | * @method $this subMilli() Sub one millisecond to the instance (using date interval). |
| 409 | * @method $this addMilliseconds(int|float $value = 1) Add milliseconds (the $value count passed in) to the instance (using date interval). |
| 410 | * @method $this addMillisecond() Add one millisecond to the instance (using date interval). |
| 411 | * @method $this subMilliseconds(int|float $value = 1) Sub milliseconds (the $value count passed in) to the instance (using date interval). |
| 412 | * @method $this subMillisecond() Sub one millisecond to the instance (using date interval). |
| 413 | * @method $this addMicros(int|float $value = 1) Add microseconds (the $value count passed in) to the instance (using date interval). |
| 414 | * @method $this addMicro() Add one microsecond to the instance (using date interval). |
| 415 | * @method $this subMicros(int|float $value = 1) Sub microseconds (the $value count passed in) to the instance (using date interval). |
| 416 | * @method $this subMicro() Sub one microsecond to the instance (using date interval). |
| 417 | * @method $this addMicroseconds(int|float $value = 1) Add microseconds (the $value count passed in) to the instance (using date interval). |
| 418 | * @method $this addMicrosecond() Add one microsecond to the instance (using date interval). |
| 419 | * @method $this subMicroseconds(int|float $value = 1) Sub microseconds (the $value count passed in) to the instance (using date interval). |
| 420 | * @method $this subMicrosecond() Sub one microsecond to the instance (using date interval). |
| 421 | * @method $this addMillennia(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval). |
| 422 | * @method $this addMillennium() Add one millennium to the instance (using date interval). |
| 423 | * @method $this subMillennia(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval). |
| 424 | * @method $this subMillennium() Sub one millennium to the instance (using date interval). |
| 425 | * @method $this addMillenniaWithOverflow(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. |
| 426 | * @method $this addMillenniumWithOverflow() Add one millennium to the instance (using date interval) with overflow explicitly allowed. |
| 427 | * @method $this subMillenniaWithOverflow(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. |
| 428 | * @method $this subMillenniumWithOverflow() Sub one millennium to the instance (using date interval) with overflow explicitly allowed. |
| 429 | * @method $this addMillenniaWithoutOverflow(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 430 | * @method $this addMillenniumWithoutOverflow() Add one millennium to the instance (using date interval) with overflow explicitly forbidden. |
| 431 | * @method $this subMillenniaWithoutOverflow(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 432 | * @method $this subMillenniumWithoutOverflow() Sub one millennium to the instance (using date interval) with overflow explicitly forbidden. |
| 433 | * @method $this addMillenniaWithNoOverflow(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 434 | * @method $this addMillenniumWithNoOverflow() Add one millennium to the instance (using date interval) with overflow explicitly forbidden. |
| 435 | * @method $this subMillenniaWithNoOverflow(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 436 | * @method $this subMillenniumWithNoOverflow() Sub one millennium to the instance (using date interval) with overflow explicitly forbidden. |
| 437 | * @method $this addMillenniaNoOverflow(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 438 | * @method $this addMillenniumNoOverflow() Add one millennium to the instance (using date interval) with overflow explicitly forbidden. |
| 439 | * @method $this subMillenniaNoOverflow(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 440 | * @method $this subMillenniumNoOverflow() Sub one millennium to the instance (using date interval) with overflow explicitly forbidden. |
| 441 | * @method $this addCenturies(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval). |
| 442 | * @method $this addCentury() Add one century to the instance (using date interval). |
| 443 | * @method $this subCenturies(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval). |
| 444 | * @method $this subCentury() Sub one century to the instance (using date interval). |
| 445 | * @method $this addCenturiesWithOverflow(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. |
| 446 | * @method $this addCenturyWithOverflow() Add one century to the instance (using date interval) with overflow explicitly allowed. |
| 447 | * @method $this subCenturiesWithOverflow(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. |
| 448 | * @method $this subCenturyWithOverflow() Sub one century to the instance (using date interval) with overflow explicitly allowed. |
| 449 | * @method $this addCenturiesWithoutOverflow(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 450 | * @method $this addCenturyWithoutOverflow() Add one century to the instance (using date interval) with overflow explicitly forbidden. |
| 451 | * @method $this subCenturiesWithoutOverflow(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 452 | * @method $this subCenturyWithoutOverflow() Sub one century to the instance (using date interval) with overflow explicitly forbidden. |
| 453 | * @method $this addCenturiesWithNoOverflow(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 454 | * @method $this addCenturyWithNoOverflow() Add one century to the instance (using date interval) with overflow explicitly forbidden. |
| 455 | * @method $this subCenturiesWithNoOverflow(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 456 | * @method $this subCenturyWithNoOverflow() Sub one century to the instance (using date interval) with overflow explicitly forbidden. |
| 457 | * @method $this addCenturiesNoOverflow(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 458 | * @method $this addCenturyNoOverflow() Add one century to the instance (using date interval) with overflow explicitly forbidden. |
| 459 | * @method $this subCenturiesNoOverflow(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 460 | * @method $this subCenturyNoOverflow() Sub one century to the instance (using date interval) with overflow explicitly forbidden. |
| 461 | * @method $this addDecades(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval). |
| 462 | * @method $this addDecade() Add one decade to the instance (using date interval). |
| 463 | * @method $this subDecades(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval). |
| 464 | * @method $this subDecade() Sub one decade to the instance (using date interval). |
| 465 | * @method $this addDecadesWithOverflow(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. |
| 466 | * @method $this addDecadeWithOverflow() Add one decade to the instance (using date interval) with overflow explicitly allowed. |
| 467 | * @method $this subDecadesWithOverflow(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. |
| 468 | * @method $this subDecadeWithOverflow() Sub one decade to the instance (using date interval) with overflow explicitly allowed. |
| 469 | * @method $this addDecadesWithoutOverflow(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 470 | * @method $this addDecadeWithoutOverflow() Add one decade to the instance (using date interval) with overflow explicitly forbidden. |
| 471 | * @method $this subDecadesWithoutOverflow(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 472 | * @method $this subDecadeWithoutOverflow() Sub one decade to the instance (using date interval) with overflow explicitly forbidden. |
| 473 | * @method $this addDecadesWithNoOverflow(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 474 | * @method $this addDecadeWithNoOverflow() Add one decade to the instance (using date interval) with overflow explicitly forbidden. |
| 475 | * @method $this subDecadesWithNoOverflow(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 476 | * @method $this subDecadeWithNoOverflow() Sub one decade to the instance (using date interval) with overflow explicitly forbidden. |
| 477 | * @method $this addDecadesNoOverflow(int|float $value = 1) Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 478 | * @method $this addDecadeNoOverflow() Add one decade to the instance (using date interval) with overflow explicitly forbidden. |
| 479 | * @method $this subDecadesNoOverflow(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 480 | * @method $this subDecadeNoOverflow() Sub one decade to the instance (using date interval) with overflow explicitly forbidden. |
| 481 | * @method $this addQuarters(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval). |
| 482 | * @method $this addQuarter() Add one quarter to the instance (using date interval). |
| 483 | * @method $this subQuarters(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval). |
| 484 | * @method $this subQuarter() Sub one quarter to the instance (using date interval). |
| 485 | * @method $this addQuartersWithOverflow(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. |
| 486 | * @method $this addQuarterWithOverflow() Add one quarter to the instance (using date interval) with overflow explicitly allowed. |
| 487 | * @method $this subQuartersWithOverflow(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed. |
| 488 | * @method $this subQuarterWithOverflow() Sub one quarter to the instance (using date interval) with overflow explicitly allowed. |
| 489 | * @method $this addQuartersWithoutOverflow(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 490 | * @method $this addQuarterWithoutOverflow() Add one quarter to the instance (using date interval) with overflow explicitly forbidden. |
| 491 | * @method $this subQuartersWithoutOverflow(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 492 | * @method $this subQuarterWithoutOverflow() Sub one quarter to the instance (using date interval) with overflow explicitly forbidden. |
| 493 | * @method $this addQuartersWithNoOverflow(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 494 | * @method $this addQuarterWithNoOverflow() Add one quarter to the instance (using date interval) with overflow explicitly forbidden. |
| 495 | * @method $this subQuartersWithNoOverflow(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 496 | * @method $this subQuarterWithNoOverflow() Sub one quarter to the instance (using date interval) with overflow explicitly forbidden. |
| 497 | * @method $this addQuartersNoOverflow(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 498 | * @method $this addQuarterNoOverflow() Add one quarter to the instance (using date interval) with overflow explicitly forbidden. |
| 499 | * @method $this subQuartersNoOverflow(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden. |
| 500 | * @method $this subQuarterNoOverflow() Sub one quarter to the instance (using date interval) with overflow explicitly forbidden. |
| 501 | * @method $this addWeeks(int|float $value = 1) Add weeks (the $value count passed in) to the instance (using date interval). |
| 502 | * @method $this addWeek() Add one week to the instance (using date interval). |
| 503 | * @method $this subWeeks(int|float $value = 1) Sub weeks (the $value count passed in) to the instance (using date interval). |
| 504 | * @method $this subWeek() Sub one week to the instance (using date interval). |
| 505 | * @method $this addWeekdays(int|float $value = 1) Add weekdays (the $value count passed in) to the instance (using date interval). |
| 506 | * @method $this addWeekday() Add one weekday to the instance (using date interval). |
| 507 | * @method $this subWeekdays(int|float $value = 1) Sub weekdays (the $value count passed in) to the instance (using date interval). |
| 508 | * @method $this subWeekday() Sub one weekday to the instance (using date interval). |
| 509 | * @method $this addUTCMicros(int|float $value = 1) Add microseconds (the $value count passed in) to the instance (using timestamp). |
| 510 | * @method $this addUTCMicro() Add one microsecond to the instance (using timestamp). |
| 511 | * @method $this subUTCMicros(int|float $value = 1) Sub microseconds (the $value count passed in) to the instance (using timestamp). |
| 512 | * @method $this subUTCMicro() Sub one microsecond to the instance (using timestamp). |
| 513 | * @method CarbonPeriod microsUntil($endDate = null, int|float $factor = 1) 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. |
| 514 | * @method float diffInUTCMicros(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of microseconds. |
| 515 | * @method $this addUTCMicroseconds(int|float $value = 1) Add microseconds (the $value count passed in) to the instance (using timestamp). |
| 516 | * @method $this addUTCMicrosecond() Add one microsecond to the instance (using timestamp). |
| 517 | * @method $this subUTCMicroseconds(int|float $value = 1) Sub microseconds (the $value count passed in) to the instance (using timestamp). |
| 518 | * @method $this subUTCMicrosecond() Sub one microsecond to the instance (using timestamp). |
| 519 | * @method CarbonPeriod microsecondsUntil($endDate = null, int|float $factor = 1) 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. |
| 520 | * @method float diffInUTCMicroseconds(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of microseconds. |
| 521 | * @method $this addUTCMillis(int|float $value = 1) Add milliseconds (the $value count passed in) to the instance (using timestamp). |
| 522 | * @method $this addUTCMilli() Add one millisecond to the instance (using timestamp). |
| 523 | * @method $this subUTCMillis(int|float $value = 1) Sub milliseconds (the $value count passed in) to the instance (using timestamp). |
| 524 | * @method $this subUTCMilli() Sub one millisecond to the instance (using timestamp). |
| 525 | * @method CarbonPeriod millisUntil($endDate = null, int|float $factor = 1) 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. |
| 526 | * @method float diffInUTCMillis(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of milliseconds. |
| 527 | * @method $this addUTCMilliseconds(int|float $value = 1) Add milliseconds (the $value count passed in) to the instance (using timestamp). |
| 528 | * @method $this addUTCMillisecond() Add one millisecond to the instance (using timestamp). |
| 529 | * @method $this subUTCMilliseconds(int|float $value = 1) Sub milliseconds (the $value count passed in) to the instance (using timestamp). |
| 530 | * @method $this subUTCMillisecond() Sub one millisecond to the instance (using timestamp). |
| 531 | * @method CarbonPeriod millisecondsUntil($endDate = null, int|float $factor = 1) 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. |
| 532 | * @method float diffInUTCMilliseconds(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of milliseconds. |
| 533 | * @method $this addUTCSeconds(int|float $value = 1) Add seconds (the $value count passed in) to the instance (using timestamp). |
| 534 | * @method $this addUTCSecond() Add one second to the instance (using timestamp). |
| 535 | * @method $this subUTCSeconds(int|float $value = 1) Sub seconds (the $value count passed in) to the instance (using timestamp). |
| 536 | * @method $this subUTCSecond() Sub one second to the instance (using timestamp). |
| 537 | * @method CarbonPeriod secondsUntil($endDate = null, int|float $factor = 1) 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. |
| 538 | * @method float diffInUTCSeconds(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of seconds. |
| 539 | * @method $this addUTCMinutes(int|float $value = 1) Add minutes (the $value count passed in) to the instance (using timestamp). |
| 540 | * @method $this addUTCMinute() Add one minute to the instance (using timestamp). |
| 541 | * @method $this subUTCMinutes(int|float $value = 1) Sub minutes (the $value count passed in) to the instance (using timestamp). |
| 542 | * @method $this subUTCMinute() Sub one minute to the instance (using timestamp). |
| 543 | * @method CarbonPeriod minutesUntil($endDate = null, int|float $factor = 1) 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. |
| 544 | * @method float diffInUTCMinutes(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of minutes. |
| 545 | * @method $this addUTCHours(int|float $value = 1) Add hours (the $value count passed in) to the instance (using timestamp). |
| 546 | * @method $this addUTCHour() Add one hour to the instance (using timestamp). |
| 547 | * @method $this subUTCHours(int|float $value = 1) Sub hours (the $value count passed in) to the instance (using timestamp). |
| 548 | * @method $this subUTCHour() Sub one hour to the instance (using timestamp). |
| 549 | * @method CarbonPeriod hoursUntil($endDate = null, int|float $factor = 1) 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. |
| 550 | * @method float diffInUTCHours(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of hours. |
| 551 | * @method $this addUTCDays(int|float $value = 1) Add days (the $value count passed in) to the instance (using timestamp). |
| 552 | * @method $this addUTCDay() Add one day to the instance (using timestamp). |
| 553 | * @method $this subUTCDays(int|float $value = 1) Sub days (the $value count passed in) to the instance (using timestamp). |
| 554 | * @method $this subUTCDay() Sub one day to the instance (using timestamp). |
| 555 | * @method CarbonPeriod daysUntil($endDate = null, int|float $factor = 1) 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. |
| 556 | * @method float diffInUTCDays(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of days. |
| 557 | * @method $this addUTCWeeks(int|float $value = 1) Add weeks (the $value count passed in) to the instance (using timestamp). |
| 558 | * @method $this addUTCWeek() Add one week to the instance (using timestamp). |
| 559 | * @method $this subUTCWeeks(int|float $value = 1) Sub weeks (the $value count passed in) to the instance (using timestamp). |
| 560 | * @method $this subUTCWeek() Sub one week to the instance (using timestamp). |
| 561 | * @method CarbonPeriod weeksUntil($endDate = null, int|float $factor = 1) 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. |
| 562 | * @method float diffInUTCWeeks(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of weeks. |
| 563 | * @method $this addUTCMonths(int|float $value = 1) Add months (the $value count passed in) to the instance (using timestamp). |
| 564 | * @method $this addUTCMonth() Add one month to the instance (using timestamp). |
| 565 | * @method $this subUTCMonths(int|float $value = 1) Sub months (the $value count passed in) to the instance (using timestamp). |
| 566 | * @method $this subUTCMonth() Sub one month to the instance (using timestamp). |
| 567 | * @method CarbonPeriod monthsUntil($endDate = null, int|float $factor = 1) 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. |
| 568 | * @method float diffInUTCMonths(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of months. |
| 569 | * @method $this addUTCQuarters(int|float $value = 1) Add quarters (the $value count passed in) to the instance (using timestamp). |
| 570 | * @method $this addUTCQuarter() Add one quarter to the instance (using timestamp). |
| 571 | * @method $this subUTCQuarters(int|float $value = 1) Sub quarters (the $value count passed in) to the instance (using timestamp). |
| 572 | * @method $this subUTCQuarter() Sub one quarter to the instance (using timestamp). |
| 573 | * @method CarbonPeriod quartersUntil($endDate = null, int|float $factor = 1) 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. |
| 574 | * @method float diffInUTCQuarters(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of quarters. |
| 575 | * @method $this addUTCYears(int|float $value = 1) Add years (the $value count passed in) to the instance (using timestamp). |
| 576 | * @method $this addUTCYear() Add one year to the instance (using timestamp). |
| 577 | * @method $this subUTCYears(int|float $value = 1) Sub years (the $value count passed in) to the instance (using timestamp). |
| 578 | * @method $this subUTCYear() Sub one year to the instance (using timestamp). |
| 579 | * @method CarbonPeriod yearsUntil($endDate = null, int|float $factor = 1) 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. |
| 580 | * @method float diffInUTCYears(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of years. |
| 581 | * @method $this addUTCDecades(int|float $value = 1) Add decades (the $value count passed in) to the instance (using timestamp). |
| 582 | * @method $this addUTCDecade() Add one decade to the instance (using timestamp). |
| 583 | * @method $this subUTCDecades(int|float $value = 1) Sub decades (the $value count passed in) to the instance (using timestamp). |
| 584 | * @method $this subUTCDecade() Sub one decade to the instance (using timestamp). |
| 585 | * @method CarbonPeriod decadesUntil($endDate = null, int|float $factor = 1) 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. |
| 586 | * @method float diffInUTCDecades(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of decades. |
| 587 | * @method $this addUTCCenturies(int|float $value = 1) Add centuries (the $value count passed in) to the instance (using timestamp). |
| 588 | * @method $this addUTCCentury() Add one century to the instance (using timestamp). |
| 589 | * @method $this subUTCCenturies(int|float $value = 1) Sub centuries (the $value count passed in) to the instance (using timestamp). |
| 590 | * @method $this subUTCCentury() Sub one century to the instance (using timestamp). |
| 591 | * @method CarbonPeriod centuriesUntil($endDate = null, int|float $factor = 1) 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. |
| 592 | * @method float diffInUTCCenturies(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of centuries. |
| 593 | * @method $this addUTCMillennia(int|float $value = 1) Add millennia (the $value count passed in) to the instance (using timestamp). |
| 594 | * @method $this addUTCMillennium() Add one millennium to the instance (using timestamp). |
| 595 | * @method $this subUTCMillennia(int|float $value = 1) Sub millennia (the $value count passed in) to the instance (using timestamp). |
| 596 | * @method $this subUTCMillennium() Sub one millennium to the instance (using timestamp). |
| 597 | * @method CarbonPeriod millenniaUntil($endDate = null, int|float $factor = 1) 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. |
| 598 | * @method float diffInUTCMillennia(DateTimeInterface|string|null $date, bool $absolute = false) Convert current and given date in UTC timezone and return a floating number of millennia. |
| 599 | * @method $this roundYear(float $precision = 1, string $function = "round") Round the current instance year with given precision using the given function. |
| 600 | * @method $this roundYears(float $precision = 1, string $function = "round") Round the current instance year with given precision using the given function. |
| 601 | * @method $this floorYear(float $precision = 1) Truncate the current instance year with given precision. |
| 602 | * @method $this floorYears(float $precision = 1) Truncate the current instance year with given precision. |
| 603 | * @method $this ceilYear(float $precision = 1) Ceil the current instance year with given precision. |
| 604 | * @method $this ceilYears(float $precision = 1) Ceil the current instance year with given precision. |
| 605 | * @method $this roundMonth(float $precision = 1, string $function = "round") Round the current instance month with given precision using the given function. |
| 606 | * @method $this roundMonths(float $precision = 1, string $function = "round") Round the current instance month with given precision using the given function. |
| 607 | * @method $this floorMonth(float $precision = 1) Truncate the current instance month with given precision. |
| 608 | * @method $this floorMonths(float $precision = 1) Truncate the current instance month with given precision. |
| 609 | * @method $this ceilMonth(float $precision = 1) Ceil the current instance month with given precision. |
| 610 | * @method $this ceilMonths(float $precision = 1) Ceil the current instance month with given precision. |
| 611 | * @method $this roundDay(float $precision = 1, string $function = "round") Round the current instance day with given precision using the given function. |
| 612 | * @method $this roundDays(float $precision = 1, string $function = "round") Round the current instance day with given precision using the given function. |
| 613 | * @method $this floorDay(float $precision = 1) Truncate the current instance day with given precision. |
| 614 | * @method $this floorDays(float $precision = 1) Truncate the current instance day with given precision. |
| 615 | * @method $this ceilDay(float $precision = 1) Ceil the current instance day with given precision. |
| 616 | * @method $this ceilDays(float $precision = 1) Ceil the current instance day with given precision. |
| 617 | * @method $this roundHour(float $precision = 1, string $function = "round") Round the current instance hour with given precision using the given function. |
| 618 | * @method $this roundHours(float $precision = 1, string $function = "round") Round the current instance hour with given precision using the given function. |
| 619 | * @method $this floorHour(float $precision = 1) Truncate the current instance hour with given precision. |
| 620 | * @method $this floorHours(float $precision = 1) Truncate the current instance hour with given precision. |
| 621 | * @method $this ceilHour(float $precision = 1) Ceil the current instance hour with given precision. |
| 622 | * @method $this ceilHours(float $precision = 1) Ceil the current instance hour with given precision. |
| 623 | * @method $this roundMinute(float $precision = 1, string $function = "round") Round the current instance minute with given precision using the given function. |
| 624 | * @method $this roundMinutes(float $precision = 1, string $function = "round") Round the current instance minute with given precision using the given function. |
| 625 | * @method $this floorMinute(float $precision = 1) Truncate the current instance minute with given precision. |
| 626 | * @method $this floorMinutes(float $precision = 1) Truncate the current instance minute with given precision. |
| 627 | * @method $this ceilMinute(float $precision = 1) Ceil the current instance minute with given precision. |
| 628 | * @method $this ceilMinutes(float $precision = 1) Ceil the current instance minute with given precision. |
| 629 | * @method $this roundSecond(float $precision = 1, string $function = "round") Round the current instance second with given precision using the given function. |
| 630 | * @method $this roundSeconds(float $precision = 1, string $function = "round") Round the current instance second with given precision using the given function. |
| 631 | * @method $this floorSecond(float $precision = 1) Truncate the current instance second with given precision. |
| 632 | * @method $this floorSeconds(float $precision = 1) Truncate the current instance second with given precision. |
| 633 | * @method $this ceilSecond(float $precision = 1) Ceil the current instance second with given precision. |
| 634 | * @method $this ceilSeconds(float $precision = 1) Ceil the current instance second with given precision. |
| 635 | * @method $this roundMillennium(float $precision = 1, string $function = "round") Round the current instance millennium with given precision using the given function. |
| 636 | * @method $this roundMillennia(float $precision = 1, string $function = "round") Round the current instance millennium with given precision using the given function. |
| 637 | * @method $this floorMillennium(float $precision = 1) Truncate the current instance millennium with given precision. |
| 638 | * @method $this floorMillennia(float $precision = 1) Truncate the current instance millennium with given precision. |
| 639 | * @method $this ceilMillennium(float $precision = 1) Ceil the current instance millennium with given precision. |
| 640 | * @method $this ceilMillennia(float $precision = 1) Ceil the current instance millennium with given precision. |
| 641 | * @method $this roundCentury(float $precision = 1, string $function = "round") Round the current instance century with given precision using the given function. |
| 642 | * @method $this roundCenturies(float $precision = 1, string $function = "round") Round the current instance century with given precision using the given function. |
| 643 | * @method $this floorCentury(float $precision = 1) Truncate the current instance century with given precision. |
| 644 | * @method $this floorCenturies(float $precision = 1) Truncate the current instance century with given precision. |
| 645 | * @method $this ceilCentury(float $precision = 1) Ceil the current instance century with given precision. |
| 646 | * @method $this ceilCenturies(float $precision = 1) Ceil the current instance century with given precision. |
| 647 | * @method $this roundDecade(float $precision = 1, string $function = "round") Round the current instance decade with given precision using the given function. |
| 648 | * @method $this roundDecades(float $precision = 1, string $function = "round") Round the current instance decade with given precision using the given function. |
| 649 | * @method $this floorDecade(float $precision = 1) Truncate the current instance decade with given precision. |
| 650 | * @method $this floorDecades(float $precision = 1) Truncate the current instance decade with given precision. |
| 651 | * @method $this ceilDecade(float $precision = 1) Ceil the current instance decade with given precision. |
| 652 | * @method $this ceilDecades(float $precision = 1) Ceil the current instance decade with given precision. |
| 653 | * @method $this roundQuarter(float $precision = 1, string $function = "round") Round the current instance quarter with given precision using the given function. |
| 654 | * @method $this roundQuarters(float $precision = 1, string $function = "round") Round the current instance quarter with given precision using the given function. |
| 655 | * @method $this floorQuarter(float $precision = 1) Truncate the current instance quarter with given precision. |
| 656 | * @method $this floorQuarters(float $precision = 1) Truncate the current instance quarter with given precision. |
| 657 | * @method $this ceilQuarter(float $precision = 1) Ceil the current instance quarter with given precision. |
| 658 | * @method $this ceilQuarters(float $precision = 1) Ceil the current instance quarter with given precision. |
| 659 | * @method $this roundMillisecond(float $precision = 1, string $function = "round") Round the current instance millisecond with given precision using the given function. |
| 660 | * @method $this roundMilliseconds(float $precision = 1, string $function = "round") Round the current instance millisecond with given precision using the given function. |
| 661 | * @method $this floorMillisecond(float $precision = 1) Truncate the current instance millisecond with given precision. |
| 662 | * @method $this floorMilliseconds(float $precision = 1) Truncate the current instance millisecond with given precision. |
| 663 | * @method $this ceilMillisecond(float $precision = 1) Ceil the current instance millisecond with given precision. |
| 664 | * @method $this ceilMilliseconds(float $precision = 1) Ceil the current instance millisecond with given precision. |
| 665 | * @method $this roundMicrosecond(float $precision = 1, string $function = "round") Round the current instance microsecond with given precision using the given function. |
| 666 | * @method $this roundMicroseconds(float $precision = 1, string $function = "round") Round the current instance microsecond with given precision using the given function. |
| 667 | * @method $this floorMicrosecond(float $precision = 1) Truncate the current instance microsecond with given precision. |
| 668 | * @method $this floorMicroseconds(float $precision = 1) Truncate the current instance microsecond with given precision. |
| 669 | * @method $this ceilMicrosecond(float $precision = 1) Ceil the current instance microsecond with given precision. |
| 670 | * @method $this ceilMicroseconds(float $precision = 1) Ceil the current instance microsecond with given precision. |
| 671 | * @method string shortAbsoluteDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (short format, 'Absolute' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) |
| 672 | * @method string longAbsoluteDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (long format, 'Absolute' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) |
| 673 | * @method string shortRelativeDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (short format, 'Relative' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) |
| 674 | * @method string longRelativeDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (long format, 'Relative' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) |
| 675 | * @method string shortRelativeToNowDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (short format, 'RelativeToNow' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) |
| 676 | * @method string longRelativeToNowDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (long format, 'RelativeToNow' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) |
| 677 | * @method string shortRelativeToOtherDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (short format, 'RelativeToOther' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) |
| 678 | * @method string longRelativeToOtherDiffForHumans(DateTimeInterface $other = null, int $parts = 1) Get the difference (long format, 'RelativeToOther' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.) |
| 679 | * @method int centuriesInMillennium() Return the number of centuries contained in the current millennium |
| 680 | * @method int|static centuryOfMillennium(?int $century = null) Return the value of the century starting from the beginning of the current millennium when called with no parameters, change the current century when called with an integer value |
| 681 | * @method int|static dayOfCentury(?int $day = null) Return the value of the day starting from the beginning of the current century when called with no parameters, change the current day when called with an integer value |
| 682 | * @method int|static dayOfDecade(?int $day = null) Return the value of the day starting from the beginning of the current decade when called with no parameters, change the current day when called with an integer value |
| 683 | * @method int|static dayOfMillennium(?int $day = null) Return the value of the day starting from the beginning of the current millennium when called with no parameters, change the current day when called with an integer value |
| 684 | * @method int|static dayOfMonth(?int $day = null) Return the value of the day starting from the beginning of the current month when called with no parameters, change the current day when called with an integer value |
| 685 | * @method int|static dayOfQuarter(?int $day = null) Return the value of the day starting from the beginning of the current quarter when called with no parameters, change the current day when called with an integer value |
| 686 | * @method int|static dayOfWeek(?int $day = null) Return the value of the day starting from the beginning of the current week when called with no parameters, change the current day when called with an integer value |
| 687 | * @method int daysInCentury() Return the number of days contained in the current century |
| 688 | * @method int daysInDecade() Return the number of days contained in the current decade |
| 689 | * @method int daysInMillennium() Return the number of days contained in the current millennium |
| 690 | * @method int daysInMonth() Return the number of days contained in the current month |
| 691 | * @method int daysInQuarter() Return the number of days contained in the current quarter |
| 692 | * @method int daysInWeek() Return the number of days contained in the current week |
| 693 | * @method int daysInYear() Return the number of days contained in the current year |
| 694 | * @method int|static decadeOfCentury(?int $decade = null) Return the value of the decade starting from the beginning of the current century when called with no parameters, change the current decade when called with an integer value |
| 695 | * @method int|static decadeOfMillennium(?int $decade = null) Return the value of the decade starting from the beginning of the current millennium when called with no parameters, change the current decade when called with an integer value |
| 696 | * @method int decadesInCentury() Return the number of decades contained in the current century |
| 697 | * @method int decadesInMillennium() Return the number of decades contained in the current millennium |
| 698 | * @method int|static hourOfCentury(?int $hour = null) Return the value of the hour starting from the beginning of the current century when called with no parameters, change the current hour when called with an integer value |
| 699 | * @method int|static hourOfDay(?int $hour = null) Return the value of the hour starting from the beginning of the current day when called with no parameters, change the current hour when called with an integer value |
| 700 | * @method int|static hourOfDecade(?int $hour = null) Return the value of the hour starting from the beginning of the current decade when called with no parameters, change the current hour when called with an integer value |
| 701 | * @method int|static hourOfMillennium(?int $hour = null) Return the value of the hour starting from the beginning of the current millennium when called with no parameters, change the current hour when called with an integer value |
| 702 | * @method int|static hourOfMonth(?int $hour = null) Return the value of the hour starting from the beginning of the current month when called with no parameters, change the current hour when called with an integer value |
| 703 | * @method int|static hourOfQuarter(?int $hour = null) Return the value of the hour starting from the beginning of the current quarter when called with no parameters, change the current hour when called with an integer value |
| 704 | * @method int|static hourOfWeek(?int $hour = null) Return the value of the hour starting from the beginning of the current week when called with no parameters, change the current hour when called with an integer value |
| 705 | * @method int|static hourOfYear(?int $hour = null) Return the value of the hour starting from the beginning of the current year when called with no parameters, change the current hour when called with an integer value |
| 706 | * @method int hoursInCentury() Return the number of hours contained in the current century |
| 707 | * @method int hoursInDay() Return the number of hours contained in the current day |
| 708 | * @method int hoursInDecade() Return the number of hours contained in the current decade |
| 709 | * @method int hoursInMillennium() Return the number of hours contained in the current millennium |
| 710 | * @method int hoursInMonth() Return the number of hours contained in the current month |
| 711 | * @method int hoursInQuarter() Return the number of hours contained in the current quarter |
| 712 | * @method int hoursInWeek() Return the number of hours contained in the current week |
| 713 | * @method int hoursInYear() Return the number of hours contained in the current year |
| 714 | * @method int|static microsecondOfCentury(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current century when called with no parameters, change the current microsecond when called with an integer value |
| 715 | * @method int|static microsecondOfDay(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current day when called with no parameters, change the current microsecond when called with an integer value |
| 716 | * @method int|static microsecondOfDecade(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current decade when called with no parameters, change the current microsecond when called with an integer value |
| 717 | * @method int|static microsecondOfHour(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current hour when called with no parameters, change the current microsecond when called with an integer value |
| 718 | * @method int|static microsecondOfMillennium(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current millennium when called with no parameters, change the current microsecond when called with an integer value |
| 719 | * @method int|static microsecondOfMillisecond(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current millisecond when called with no parameters, change the current microsecond when called with an integer value |
| 720 | * @method int|static microsecondOfMinute(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current minute when called with no parameters, change the current microsecond when called with an integer value |
| 721 | * @method int|static microsecondOfMonth(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current month when called with no parameters, change the current microsecond when called with an integer value |
| 722 | * @method int|static microsecondOfQuarter(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current quarter when called with no parameters, change the current microsecond when called with an integer value |
| 723 | * @method int|static microsecondOfSecond(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current second when called with no parameters, change the current microsecond when called with an integer value |
| 724 | * @method int|static microsecondOfWeek(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current week when called with no parameters, change the current microsecond when called with an integer value |
| 725 | * @method int|static microsecondOfYear(?int $microsecond = null) Return the value of the microsecond starting from the beginning of the current year when called with no parameters, change the current microsecond when called with an integer value |
| 726 | * @method int microsecondsInCentury() Return the number of microseconds contained in the current century |
| 727 | * @method int microsecondsInDay() Return the number of microseconds contained in the current day |
| 728 | * @method int microsecondsInDecade() Return the number of microseconds contained in the current decade |
| 729 | * @method int microsecondsInHour() Return the number of microseconds contained in the current hour |
| 730 | * @method int microsecondsInMillennium() Return the number of microseconds contained in the current millennium |
| 731 | * @method int microsecondsInMillisecond() Return the number of microseconds contained in the current millisecond |
| 732 | * @method int microsecondsInMinute() Return the number of microseconds contained in the current minute |
| 733 | * @method int microsecondsInMonth() Return the number of microseconds contained in the current month |
| 734 | * @method int microsecondsInQuarter() Return the number of microseconds contained in the current quarter |
| 735 | * @method int microsecondsInSecond() Return the number of microseconds contained in the current second |
| 736 | * @method int microsecondsInWeek() Return the number of microseconds contained in the current week |
| 737 | * @method int microsecondsInYear() Return the number of microseconds contained in the current year |
| 738 | * @method int|static millisecondOfCentury(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current century when called with no parameters, change the current millisecond when called with an integer value |
| 739 | * @method int|static millisecondOfDay(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current day when called with no parameters, change the current millisecond when called with an integer value |
| 740 | * @method int|static millisecondOfDecade(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current decade when called with no parameters, change the current millisecond when called with an integer value |
| 741 | * @method int|static millisecondOfHour(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current hour when called with no parameters, change the current millisecond when called with an integer value |
| 742 | * @method int|static millisecondOfMillennium(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current millennium when called with no parameters, change the current millisecond when called with an integer value |
| 743 | * @method int|static millisecondOfMinute(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current minute when called with no parameters, change the current millisecond when called with an integer value |
| 744 | * @method int|static millisecondOfMonth(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current month when called with no parameters, change the current millisecond when called with an integer value |
| 745 | * @method int|static millisecondOfQuarter(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current quarter when called with no parameters, change the current millisecond when called with an integer value |
| 746 | * @method int|static millisecondOfSecond(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current second when called with no parameters, change the current millisecond when called with an integer value |
| 747 | * @method int|static millisecondOfWeek(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current week when called with no parameters, change the current millisecond when called with an integer value |
| 748 | * @method int|static millisecondOfYear(?int $millisecond = null) Return the value of the millisecond starting from the beginning of the current year when called with no parameters, change the current millisecond when called with an integer value |
| 749 | * @method int millisecondsInCentury() Return the number of milliseconds contained in the current century |
| 750 | * @method int millisecondsInDay() Return the number of milliseconds contained in the current day |
| 751 | * @method int millisecondsInDecade() Return the number of milliseconds contained in the current decade |
| 752 | * @method int millisecondsInHour() Return the number of milliseconds contained in the current hour |
| 753 | * @method int millisecondsInMillennium() Return the number of milliseconds contained in the current millennium |
| 754 | * @method int millisecondsInMinute() Return the number of milliseconds contained in the current minute |
| 755 | * @method int millisecondsInMonth() Return the number of milliseconds contained in the current month |
| 756 | * @method int millisecondsInQuarter() Return the number of milliseconds contained in the current quarter |
| 757 | * @method int millisecondsInSecond() Return the number of milliseconds contained in the current second |
| 758 | * @method int millisecondsInWeek() Return the number of milliseconds contained in the current week |
| 759 | * @method int millisecondsInYear() Return the number of milliseconds contained in the current year |
| 760 | * @method int|static minuteOfCentury(?int $minute = null) Return the value of the minute starting from the beginning of the current century when called with no parameters, change the current minute when called with an integer value |
| 761 | * @method int|static minuteOfDay(?int $minute = null) Return the value of the minute starting from the beginning of the current day when called with no parameters, change the current minute when called with an integer value |
| 762 | * @method int|static minuteOfDecade(?int $minute = null) Return the value of the minute starting from the beginning of the current decade when called with no parameters, change the current minute when called with an integer value |
| 763 | * @method int|static minuteOfHour(?int $minute = null) Return the value of the minute starting from the beginning of the current hour when called with no parameters, change the current minute when called with an integer value |
| 764 | * @method int|static minuteOfMillennium(?int $minute = null) Return the value of the minute starting from the beginning of the current millennium when called with no parameters, change the current minute when called with an integer value |
| 765 | * @method int|static minuteOfMonth(?int $minute = null) Return the value of the minute starting from the beginning of the current month when called with no parameters, change the current minute when called with an integer value |
| 766 | * @method int|static minuteOfQuarter(?int $minute = null) Return the value of the minute starting from the beginning of the current quarter when called with no parameters, change the current minute when called with an integer value |
| 767 | * @method int|static minuteOfWeek(?int $minute = null) Return the value of the minute starting from the beginning of the current week when called with no parameters, change the current minute when called with an integer value |
| 768 | * @method int|static minuteOfYear(?int $minute = null) Return the value of the minute starting from the beginning of the current year when called with no parameters, change the current minute when called with an integer value |
| 769 | * @method int minutesInCentury() Return the number of minutes contained in the current century |
| 770 | * @method int minutesInDay() Return the number of minutes contained in the current day |
| 771 | * @method int minutesInDecade() Return the number of minutes contained in the current decade |
| 772 | * @method int minutesInHour() Return the number of minutes contained in the current hour |
| 773 | * @method int minutesInMillennium() Return the number of minutes contained in the current millennium |
| 774 | * @method int minutesInMonth() Return the number of minutes contained in the current month |
| 775 | * @method int minutesInQuarter() Return the number of minutes contained in the current quarter |
| 776 | * @method int minutesInWeek() Return the number of minutes contained in the current week |
| 777 | * @method int minutesInYear() Return the number of minutes contained in the current year |
| 778 | * @method int|static monthOfCentury(?int $month = null) Return the value of the month starting from the beginning of the current century when called with no parameters, change the current month when called with an integer value |
| 779 | * @method int|static monthOfDecade(?int $month = null) Return the value of the month starting from the beginning of the current decade when called with no parameters, change the current month when called with an integer value |
| 780 | * @method int|static monthOfMillennium(?int $month = null) Return the value of the month starting from the beginning of the current millennium when called with no parameters, change the current month when called with an integer value |
| 781 | * @method int|static monthOfQuarter(?int $month = null) Return the value of the month starting from the beginning of the current quarter when called with no parameters, change the current month when called with an integer value |
| 782 | * @method int|static monthOfYear(?int $month = null) Return the value of the month starting from the beginning of the current year when called with no parameters, change the current month when called with an integer value |
| 783 | * @method int monthsInCentury() Return the number of months contained in the current century |
| 784 | * @method int monthsInDecade() Return the number of months contained in the current decade |
| 785 | * @method int monthsInMillennium() Return the number of months contained in the current millennium |
| 786 | * @method int monthsInQuarter() Return the number of months contained in the current quarter |
| 787 | * @method int monthsInYear() Return the number of months contained in the current year |
| 788 | * @method int|static quarterOfCentury(?int $quarter = null) Return the value of the quarter starting from the beginning of the current century when called with no parameters, change the current quarter when called with an integer value |
| 789 | * @method int|static quarterOfDecade(?int $quarter = null) Return the value of the quarter starting from the beginning of the current decade when called with no parameters, change the current quarter when called with an integer value |
| 790 | * @method int|static quarterOfMillennium(?int $quarter = null) Return the value of the quarter starting from the beginning of the current millennium when called with no parameters, change the current quarter when called with an integer value |
| 791 | * @method int|static quarterOfYear(?int $quarter = null) Return the value of the quarter starting from the beginning of the current year when called with no parameters, change the current quarter when called with an integer value |
| 792 | * @method int quartersInCentury() Return the number of quarters contained in the current century |
| 793 | * @method int quartersInDecade() Return the number of quarters contained in the current decade |
| 794 | * @method int quartersInMillennium() Return the number of quarters contained in the current millennium |
| 795 | * @method int quartersInYear() Return the number of quarters contained in the current year |
| 796 | * @method int|static secondOfCentury(?int $second = null) Return the value of the second starting from the beginning of the current century when called with no parameters, change the current second when called with an integer value |
| 797 | * @method int|static secondOfDay(?int $second = null) Return the value of the second starting from the beginning of the current day when called with no parameters, change the current second when called with an integer value |
| 798 | * @method int|static secondOfDecade(?int $second = null) Return the value of the second starting from the beginning of the current decade when called with no parameters, change the current second when called with an integer value |
| 799 | * @method int|static secondOfHour(?int $second = null) Return the value of the second starting from the beginning of the current hour when called with no parameters, change the current second when called with an integer value |
| 800 | * @method int|static secondOfMillennium(?int $second = null) Return the value of the second starting from the beginning of the current millennium when called with no parameters, change the current second when called with an integer value |
| 801 | * @method int|static secondOfMinute(?int $second = null) Return the value of the second starting from the beginning of the current minute when called with no parameters, change the current second when called with an integer value |
| 802 | * @method int|static secondOfMonth(?int $second = null) Return the value of the second starting from the beginning of the current month when called with no parameters, change the current second when called with an integer value |
| 803 | * @method int|static secondOfQuarter(?int $second = null) Return the value of the second starting from the beginning of the current quarter when called with no parameters, change the current second when called with an integer value |
| 804 | * @method int|static secondOfWeek(?int $second = null) Return the value of the second starting from the beginning of the current week when called with no parameters, change the current second when called with an integer value |
| 805 | * @method int|static secondOfYear(?int $second = null) Return the value of the second starting from the beginning of the current year when called with no parameters, change the current second when called with an integer value |
| 806 | * @method int secondsInCentury() Return the number of seconds contained in the current century |
| 807 | * @method int secondsInDay() Return the number of seconds contained in the current day |
| 808 | * @method int secondsInDecade() Return the number of seconds contained in the current decade |
| 809 | * @method int secondsInHour() Return the number of seconds contained in the current hour |
| 810 | * @method int secondsInMillennium() Return the number of seconds contained in the current millennium |
| 811 | * @method int secondsInMinute() Return the number of seconds contained in the current minute |
| 812 | * @method int secondsInMonth() Return the number of seconds contained in the current month |
| 813 | * @method int secondsInQuarter() Return the number of seconds contained in the current quarter |
| 814 | * @method int secondsInWeek() Return the number of seconds contained in the current week |
| 815 | * @method int secondsInYear() Return the number of seconds contained in the current year |
| 816 | * @method int|static weekOfCentury(?int $week = null) Return the value of the week starting from the beginning of the current century when called with no parameters, change the current week when called with an integer value |
| 817 | * @method int|static weekOfDecade(?int $week = null) Return the value of the week starting from the beginning of the current decade when called with no parameters, change the current week when called with an integer value |
| 818 | * @method int|static weekOfMillennium(?int $week = null) Return the value of the week starting from the beginning of the current millennium when called with no parameters, change the current week when called with an integer value |
| 819 | * @method int|static weekOfMonth(?int $week = null) Return the value of the week starting from the beginning of the current month when called with no parameters, change the current week when called with an integer value |
| 820 | * @method int|static weekOfQuarter(?int $week = null) Return the value of the week starting from the beginning of the current quarter when called with no parameters, change the current week when called with an integer value |
| 821 | * @method int|static weekOfYear(?int $week = null) Return the value of the week starting from the beginning of the current year when called with no parameters, change the current week when called with an integer value |
| 822 | * @method int weeksInCentury() Return the number of weeks contained in the current century |
| 823 | * @method int weeksInDecade() Return the number of weeks contained in the current decade |
| 824 | * @method int weeksInMillennium() Return the number of weeks contained in the current millennium |
| 825 | * @method int weeksInMonth() Return the number of weeks contained in the current month |
| 826 | * @method int weeksInQuarter() Return the number of weeks contained in the current quarter |
| 827 | * @method int|static yearOfCentury(?int $year = null) Return the value of the year starting from the beginning of the current century when called with no parameters, change the current year when called with an integer value |
| 828 | * @method int|static yearOfDecade(?int $year = null) Return the value of the year starting from the beginning of the current decade when called with no parameters, change the current year when called with an integer value |
| 829 | * @method int|static yearOfMillennium(?int $year = null) Return the value of the year starting from the beginning of the current millennium when called with no parameters, change the current year when called with an integer value |
| 830 | * @method int yearsInCentury() Return the number of years contained in the current century |
| 831 | * @method int yearsInDecade() Return the number of years contained in the current decade |
| 832 | * @method int yearsInMillennium() Return the number of years contained in the current millennium |
| 833 | * |
| 834 | * </autodoc> |
| 835 | */ |
| 836 | class Carbon extends DateTime implements CarbonInterface |
| 837 | { |
| 838 | use Date; |
| 839 | |
| 840 | /** |
| 841 | * Returns true if the current class/instance is mutable. |
| 842 | */ |
| 843 | public static function isMutable(): bool |
| 844 | { |
| 845 | return true; |
| 846 | } |
| 847 | } |