Date

Illuminate\Support\Facades\Date

class src/Illuminate/Support/Facades/Date.php

canBeCreatedFromFormat

v12.4.0 から

static @method

static canBeCreatedFromFormat(?string $date, string $format): bool
  1. v12.4.0 追加
    変更後
    @method static canBeCreatedFromFormat(?string $date, string $format): bool

create

v11.0.0 以前から

static @method

static create($year = 0, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0, $timezone = null): \Illuminate\Support\Carbon|null
  1. v11.0.0 追加
    変更後
    @method static create($year = 0, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0, $tz = null): \Illuminate\Support\Carbon
  2. v12.1.0 シグネチャ変更
    変更前
    @method static create($year = 0, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0, $tz = null): \Illuminate\Support\Carbon
    変更後
    @method static create($year = 0, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0, $timezone = null): \Illuminate\Support\Carbon
  3. v12.4.0 シグネチャ変更
    変更前
    @method static create($year = 0, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0, $timezone = null): \Illuminate\Support\Carbon
    変更後
    @method static create($year = 0, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0, $timezone = null): \Illuminate\Support\Carbon|null

createFromDate

v11.0.0 以前から

static @method

static createFromDate($year = null, $month = null, $day = null, $timezone = null): \Illuminate\Support\Carbon
  1. v11.0.0 追加
    変更後
    @method static createFromDate($year = null, $month = null, $day = null, $tz = null): \Illuminate\Support\Carbon
  2. v12.1.0 シグネチャ変更
    変更前
    @method static createFromDate($year = null, $month = null, $day = null, $tz = null): \Illuminate\Support\Carbon
    変更後
    @method static createFromDate($year = null, $month = null, $day = null, $timezone = null): \Illuminate\Support\Carbon

createFromFormat

v11.0.0 以前から

static @method

static createFromFormat($format, $time, $timezone = null): \Illuminate\Support\Carbon|null
  1. v11.0.0 追加
    変更後
    @method static createFromFormat($format, $time, $tz = null): \Illuminate\Support\Carbon|false
  2. v12.1.0 シグネチャ変更
    変更前
    @method static createFromFormat($format, $time, $tz = null): \Illuminate\Support\Carbon|false
    変更後
    @method static createFromFormat($format, $time, $timezone = null): \Illuminate\Support\Carbon|false
  3. v12.4.0 シグネチャ変更
    変更前
    @method static createFromFormat($format, $time, $timezone = null): \Illuminate\Support\Carbon|false
    変更後
    @method static createFromFormat($format, $time, $timezone = null): \Illuminate\Support\Carbon|null

createFromIsoFormat

v12.4.0 から

static @method

static createFromIsoFormat(string $format, string $time, $timezone = null, ?string $locale = 'en', ?\Symfony\Contracts\Translation\TranslatorInterface $translator = null): \Illuminate\Support\Carbon|null
  1. v12.4.0 追加
    変更後
    @method static createFromIsoFormat(string $format, string $time, $timezone = null, ?string $locale = 'en', ?TranslatorInterface $translator = null): \Illuminate\Support\Carbon|null
  2. v12.6.0 シグネチャ変更
    変更前
    @method static createFromIsoFormat(string $format, string $time, $timezone = null, ?string $locale = 'en', ?TranslatorInterface $translator = null): \Illuminate\Support\Carbon|null
    変更後
    @method static createFromIsoFormat(string $format, string $time, $timezone = null, ?string $locale = 'en', ?\Symfony\Contracts\Translation\TranslatorInterface $translator = null): \Illuminate\Support\Carbon|null

createFromLocaleFormat

v12.4.0 から

static @method

static createFromLocaleFormat(string $format, string $locale, string $time, $timezone = null): \Illuminate\Support\Carbon|null
  1. v12.4.0 追加
    変更後
    @method static createFromLocaleFormat(string $format, string $locale, string $time, $timezone = null): \Illuminate\Support\Carbon|null

createFromLocaleIsoFormat

v12.4.0 から

static @method

static createFromLocaleIsoFormat(string $format, string $locale, string $time, $timezone = null): \Illuminate\Support\Carbon|null
  1. v12.4.0 追加
    変更後
    @method static createFromLocaleIsoFormat(string $format, string $locale, string $time, $timezone = null): \Illuminate\Support\Carbon|null

createFromTime

v11.0.0 以前から

static @method

static createFromTime($hour = 0, $minute = 0, $second = 0, $timezone = null): \Illuminate\Support\Carbon
  1. v11.0.0 追加
    変更後
    @method static createFromTime($hour = 0, $minute = 0, $second = 0, $tz = null): \Illuminate\Support\Carbon
  2. v12.1.0 シグネチャ変更
    変更前
    @method static createFromTime($hour = 0, $minute = 0, $second = 0, $tz = null): \Illuminate\Support\Carbon
    変更後
    @method static createFromTime($hour = 0, $minute = 0, $second = 0, $timezone = null): \Illuminate\Support\Carbon

createFromTimestamp

v11.0.0 以前から

static @method

static createFromTimestamp(string|int|float $timestamp, \DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
  1. v11.0.0 追加
    変更後
    @method static createFromTimestamp($timestamp, $tz = null): \Illuminate\Support\Carbon
  2. v12.1.0 シグネチャ変更
    変更前
    @method static createFromTimestamp($timestamp, $tz = null): \Illuminate\Support\Carbon
    変更後
    @method static createFromTimestamp($timestamp, $timezone = null): \Illuminate\Support\Carbon
  3. v12.4.0 シグネチャ変更
    変更前
    @method static createFromTimestamp($timestamp, $timezone = null): \Illuminate\Support\Carbon
    変更後
    @method static createFromTimestamp(string|int|float $timestamp, DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
  4. v12.6.0 シグネチャ変更
    変更前
    @method static createFromTimestamp(string|int|float $timestamp, DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
    変更後
    @method static createFromTimestamp(string|int|float $timestamp, \DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon

createFromTimestampMs

v11.0.0 以前から

static @method

static createFromTimestampMs(string|int|float $timestamp, \DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
  1. v11.0.0 追加
    変更後
    @method static createFromTimestampMs($timestamp, $tz = null): \Illuminate\Support\Carbon
  2. v12.1.0 シグネチャ変更
    変更前
    @method static createFromTimestampMs($timestamp, $tz = null): \Illuminate\Support\Carbon
    変更後
    @method static createFromTimestampMs($timestamp, $timezone = null): \Illuminate\Support\Carbon
  3. v12.4.0 シグネチャ変更
    変更前
    @method static createFromTimestampMs($timestamp, $timezone = null): \Illuminate\Support\Carbon
    変更後
    @method static createFromTimestampMs(string|int|float $timestamp, DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
  4. v12.6.0 シグネチャ変更
    変更前
    @method static createFromTimestampMs(string|int|float $timestamp, DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
    変更後
    @method static createFromTimestampMs(string|int|float $timestamp, \DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon

createFromTimestampMsUTC

v12.4.0 から

static @method

static createFromTimestampMsUTC($timestamp): \Illuminate\Support\Carbon
  1. v12.4.0 追加
    変更後
    @method static createFromTimestampMsUTC($timestamp): \Illuminate\Support\Carbon

createFromTimestampUTC

v11.0.0 以前から

static @method

static createFromTimestampUTC(string|int|float $timestamp): \Illuminate\Support\Carbon
  1. v11.0.0 追加
    変更後
    @method static createFromTimestampUTC($timestamp): \Illuminate\Support\Carbon
  2. v12.4.0 シグネチャ変更
    変更前
    @method static createFromTimestampUTC($timestamp): \Illuminate\Support\Carbon
    変更後
    @method static createFromTimestampUTC(string|int|float $timestamp): \Illuminate\Support\Carbon

createFromTimeString

v11.0.0 以前から

static @method

static createFromTimeString(string $time, \DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
  1. v11.0.0 追加
    変更後
    @method static createFromTimeString($time, $tz = null): \Illuminate\Support\Carbon
  2. v12.1.0 シグネチャ変更
    変更前
    @method static createFromTimeString($time, $tz = null): \Illuminate\Support\Carbon
    変更後
    @method static createFromTimeString($time, $timezone = null): \Illuminate\Support\Carbon
  3. v12.4.0 シグネチャ変更
    変更前
    @method static createFromTimeString($time, $timezone = null): \Illuminate\Support\Carbon
    変更後
    @method static createFromTimeString(string $time, DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
  4. v12.6.0 シグネチャ変更
    変更前
    @method static createFromTimeString(string $time, DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
    変更後
    @method static createFromTimeString(string $time, \DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon

createMidnightDate

v11.0.0 以前から

static @method

static createMidnightDate($year = null, $month = null, $day = null, $timezone = null): \Illuminate\Support\Carbon
  1. v11.0.0 追加
    変更後
    @method static createMidnightDate($year = null, $month = null, $day = null, $tz = null): \Illuminate\Support\Carbon
  2. v12.1.0 シグネチャ変更
    変更前
    @method static createMidnightDate($year = null, $month = null, $day = null, $tz = null): \Illuminate\Support\Carbon
    変更後
    @method static createMidnightDate($year = null, $month = null, $day = null, $timezone = null): \Illuminate\Support\Carbon

createSafe

v11.0.0 以前から

static @method

static createSafe($year = null, $month = null, $day = null, $hour = null, $minute = null, $second = null, $timezone = null): \Illuminate\Support\Carbon|null
  1. v11.0.0 追加
    変更後
    @method static createSafe($year = null, $month = null, $day = null, $hour = null, $minute = null, $second = null, $tz = null): \Illuminate\Support\Carbon|false
  2. v12.1.0 シグネチャ変更
    変更前
    @method static createSafe($year = null, $month = null, $day = null, $hour = null, $minute = null, $second = null, $tz = null): \Illuminate\Support\Carbon|false
    変更後
    @method static createSafe($year = null, $month = null, $day = null, $hour = null, $minute = null, $second = null, $timezone = null): \Illuminate\Support\Carbon|false
  3. v12.4.0 シグネチャ変更
    変更前
    @method static createSafe($year = null, $month = null, $day = null, $hour = null, $minute = null, $second = null, $timezone = null): \Illuminate\Support\Carbon|false
    変更後
    @method static createSafe($year = null, $month = null, $day = null, $hour = null, $minute = null, $second = null, $timezone = null): \Illuminate\Support\Carbon|null

createStrict

v12.4.0 から

static @method

static createStrict(?int $year = 0, ?int $month = 1, ?int $day = 1, ?int $hour = 0, ?int $minute = 0, ?int $second = 0, $timezone = null): \Illuminate\Support\Carbon
  1. v12.4.0 追加
    変更後
    @method static createStrict(?int $year = 0, ?int $month = 1, ?int $day = 1, ?int $hour = 0, ?int $minute = 0, ?int $second = 0, $timezone = null): \Illuminate\Support\Carbon

disableHumanDiffOption

v11.0.0 以前から

static @method

static disableHumanDiffOption($humanDiffOption): void
  1. v11.0.0 追加
    変更後
    @method static disableHumanDiffOption($humanDiffOption): void

enableHumanDiffOption

v11.0.0 以前から

static @method

static enableHumanDiffOption($humanDiffOption): void
  1. v11.0.0 追加
    変更後
    @method static enableHumanDiffOption($humanDiffOption): void

executeWithLocale

v11.0.0 以前から

static @method

static executeWithLocale(string $locale, callable $func): mixed
  1. v11.0.0 追加
    変更後
    @method static executeWithLocale($locale, $func): mixed
  2. v12.4.0 シグネチャ変更
    変更前
    @method static executeWithLocale($locale, $func): mixed
    変更後
    @method static executeWithLocale(string $locale, callable $func): mixed

fromSerialized

v11.0.0 以前から

static @method

static fromSerialized($value): \Illuminate\Support\Carbon
  1. v11.0.0 追加
    変更後
    @method static fromSerialized($value): \Illuminate\Support\Carbon

getAvailableLocales

v11.0.0 以前から

static @method

static getAvailableLocales(): array
  1. v11.0.0 追加
    変更後
    @method static getAvailableLocales(): array

getAvailableLocalesInfo

v12.4.0 から

static @method

static getAvailableLocalesInfo(): array
  1. v12.4.0 追加
    変更後
    @method static getAvailableLocalesInfo(): array

getDays

v11.0.0 以前から

static @method

static getDays(): array
  1. v11.0.0 追加
    変更後
    @method static getDays(): array

getFallbackLocale

v12.4.0 から

static @method

static getFallbackLocale(): ?string
  1. v12.4.0 追加
    変更後
    @method static getFallbackLocale(): ?string

getFormatsToIsoReplacements

v12.4.0 から

static @method

static getFormatsToIsoReplacements(): array
  1. v12.4.0 追加
    変更後
    @method static getFormatsToIsoReplacements(): array

getHumanDiffOptions

v11.0.0 以前から

static @method

static getHumanDiffOptions(): int
  1. v11.0.0 追加
    変更後
    @method static getHumanDiffOptions(): int

getIsoUnits

v11.0.0 以前から

static @method

static getIsoUnits(): array
  1. v11.0.0 追加
    変更後
    @method static getIsoUnits(): array

getLastErrors

v11.0.0 以前から

static @method

static getLastErrors(): array|false
  1. v11.0.0 追加
    変更後
    @method static getLastErrors(): array
  2. v12.4.0 シグネチャ変更
    変更前
    @method static getLastErrors(): array
    変更後
    @method static getLastErrors(): array|false

getLocale

v11.0.0 以前から

static @method

static getLocale(): string
  1. v11.0.0 追加
    変更後
    @method static getLocale(): string

getMidDayAt

v11.0.0 以前から

static @method

static getMidDayAt(): int
  1. v11.0.0 追加
    変更後
    @method static getMidDayAt(): int

getTestNow

v11.0.0 以前から

static @method

static getTestNow(): \Illuminate\Support\Carbon|null
  1. v11.0.0 追加
    変更後
    @method static getTestNow(): \Illuminate\Support\Carbon|null

getTimeFormatByPrecision

v12.4.0 から

static @method

static getTimeFormatByPrecision(string $unitPrecision): string
  1. v12.4.0 追加
    変更後
    @method static getTimeFormatByPrecision(string $unitPrecision): string

getTranslationMessageWith

v12.4.0 から

static @method

static getTranslationMessageWith($translator, string $key, ?string $locale = null, ?string $default = null): string|\Closure|null
  1. v12.4.0 追加
    変更後
    @method static getTranslationMessageWith($translator, string $key, ?string $locale = null, ?string $default = null): string|Closure|null
  2. v12.6.0 シグネチャ変更
    変更前
    @method static getTranslationMessageWith($translator, string $key, ?string $locale = null, ?string $default = null): string|Closure|null
    変更後
    @method static getTranslationMessageWith($translator, string $key, ?string $locale = null, ?string $default = null): string|\Closure|null

getTranslator

v11.0.0 以前から

static @method

static getTranslator(): \Symfony\Contracts\Translation\TranslatorInterface
  1. v11.0.0 追加
    変更後
    @method static getTranslator(): \Symfony\Component\Translation\TranslatorInterface
  2. v12.1.0 シグネチャ変更
    変更前
    @method static getTranslator(): \Symfony\Component\Translation\TranslatorInterface
    変更後
    @method static getTranslator(): \Symfony\Contracts\Translation\TranslatorInterface

getWeekendDays

v11.0.0 以前から

static @method

static getWeekendDays(): array
  1. v11.0.0 追加
    変更後
    @method static getWeekendDays(): array

getWeekEndsAt

v11.0.0 以前から

static @method

static getWeekEndsAt(?string $locale = null): int
  1. v11.0.0 追加
    変更後
    @method static getWeekEndsAt(): int
  2. v12.4.0 シグネチャ変更
    変更前
    @method static getWeekEndsAt(): int
    変更後
    @method static getWeekEndsAt(?string $locale = null): int

getWeekStartsAt

v11.0.0 以前から

static @method

static getWeekStartsAt(?string $locale = null): int
  1. v11.0.0 追加
    変更後
    @method static getWeekStartsAt(): int
  2. v12.4.0 シグネチャ変更
    変更前
    @method static getWeekStartsAt(): int
    変更後
    @method static getWeekStartsAt(?string $locale = null): int

hasFormat

v11.0.0 以前から

static @method

static hasFormat(string $date, string $format): bool
  1. v11.0.0 追加
    変更後
    @method static hasFormat($date, $format): bool
  2. v12.4.0 シグネチャ変更
    変更前
    @method static hasFormat($date, $format): bool
    変更後
    @method static hasFormat(string $date, string $format): bool

hasFormatWithModifiers

v12.4.0 から

static @method

static hasFormatWithModifiers(string $date, string $format): bool
  1. v12.4.0 追加
    変更後
    @method static hasFormatWithModifiers(string $date, string $format): bool

hasMacro

v11.0.0 以前から

static @method

static hasMacro($name): bool
  1. v11.0.0 追加
    変更後
    @method static hasMacro($name): bool

hasRelativeKeywords

v11.0.0 以前から

static @method

static hasRelativeKeywords(?string $time): bool
  1. v11.0.0 追加
    変更後
    @method static hasRelativeKeywords($time): bool
  2. v12.4.0 シグネチャ変更
    変更前
    @method static hasRelativeKeywords($time): bool
    変更後
    @method static hasRelativeKeywords(?string $time): bool

hasTestNow

v11.0.0 以前から

static @method

static hasTestNow(): bool
  1. v11.0.0 追加
    変更後
    @method static hasTestNow(): bool

instance

v11.0.0 以前から

static @method

static instance(\DateTimeInterface $date): \Illuminate\Support\Carbon
  1. v11.0.0 追加
    変更後
    @method static instance($date): \Illuminate\Support\Carbon
  2. v12.4.0 シグネチャ変更
    変更前
    @method static instance($date): \Illuminate\Support\Carbon
    変更後
    @method static instance(DateTimeInterface $date): \Illuminate\Support\Carbon
  3. v12.6.0 シグネチャ変更
    変更前
    @method static instance(DateTimeInterface $date): \Illuminate\Support\Carbon
    変更後
    @method static instance(\DateTimeInterface $date): \Illuminate\Support\Carbon

isImmutable

v11.0.0 以前から

static @method

static isImmutable(): bool
  1. v11.0.0 追加
    変更後
    @method static isImmutable(): bool

isModifiableUnit

v11.0.0 以前から

static @method

static isModifiableUnit($unit): bool
  1. v11.0.0 追加
    変更後
    @method static isModifiableUnit($unit): bool

isMutable

v11.0.0 以前から

static @method

static isMutable(): bool
  1. v11.0.0 追加
    変更後
    @method static isMutable(): bool

isStrictModeEnabled

v11.0.0 以前から

static @method

static isStrictModeEnabled(): bool
  1. v11.0.0 追加
    変更後
    @method static isStrictModeEnabled(): bool

localeHasDiffOneDayWords

v11.0.0 以前から

static @method

static localeHasDiffOneDayWords(string $locale): bool
  1. v11.0.0 追加
    変更後
    @method static localeHasDiffOneDayWords($locale): bool
  2. v12.4.0 シグネチャ変更
    変更前
    @method static localeHasDiffOneDayWords($locale): bool
    変更後
    @method static localeHasDiffOneDayWords(string $locale): bool

localeHasDiffSyntax

v11.0.0 以前から

static @method

static localeHasDiffSyntax(string $locale): bool
  1. v11.0.0 追加
    変更後
    @method static localeHasDiffSyntax($locale): bool
  2. v12.4.0 シグネチャ変更
    変更前
    @method static localeHasDiffSyntax($locale): bool
    変更後
    @method static localeHasDiffSyntax(string $locale): bool

localeHasDiffTwoDayWords

v11.0.0 以前から

static @method

static localeHasDiffTwoDayWords(string $locale): bool
  1. v11.0.0 追加
    変更後
    @method static localeHasDiffTwoDayWords($locale): bool
  2. v12.4.0 シグネチャ変更
    変更前
    @method static localeHasDiffTwoDayWords($locale): bool
    変更後
    @method static localeHasDiffTwoDayWords(string $locale): bool

localeHasPeriodSyntax

v11.0.0 以前から

static @method

static localeHasPeriodSyntax($locale): bool
  1. v11.0.0 追加
    変更後
    @method static localeHasPeriodSyntax($locale): bool

localeHasShortUnits

v11.0.0 以前から

static @method

static localeHasShortUnits(string $locale): bool
  1. v11.0.0 追加
    変更後
    @method static localeHasShortUnits($locale): bool
  2. v12.4.0 シグネチャ変更
    変更前
    @method static localeHasShortUnits($locale): bool
    変更後
    @method static localeHasShortUnits(string $locale): bool

macro

v11.0.0 以前から

static @method

static macro(string $name, ?callable $macro): void
  1. v11.0.0 追加
    変更後
    @method static macro($name, $macro): void
  2. v12.4.0 シグネチャ変更
    変更前
    @method static macro($name, $macro): void
    変更後
    @method static macro(string $name, ?callable $macro): void

make

v11.0.0 以前から

static @method

static make($var, \DateTimeZone|string|null $timezone = null): \Illuminate\Support\Carbon|null
  1. v11.0.0 追加
    変更後
    @method static make($var): \Illuminate\Support\Carbon|null
  2. v12.4.0 シグネチャ変更
    変更前
    @method static make($var): \Illuminate\Support\Carbon|null
    変更後
    @method static make($var, DateTimeZone|string|null $timezone = null): \Illuminate\Support\Carbon|null
  3. v12.6.0 シグネチャ変更
    変更前
    @method static make($var, DateTimeZone|string|null $timezone = null): \Illuminate\Support\Carbon|null
    変更後
    @method static make($var, \DateTimeZone|string|null $timezone = null): \Illuminate\Support\Carbon|null

maxValue

v11.0.0 以前から

v12.4.0 で削除

  1. v11.0.0 追加
    変更後
    @method static maxValue(): \Illuminate\Support\Carbon
  2. v12.4.0 削除
    変更前
    @method static maxValue(): \Illuminate\Support\Carbon

minValue

v11.0.0 以前から

v12.4.0 で削除

  1. v11.0.0 追加
    変更後
    @method static minValue(): \Illuminate\Support\Carbon
  2. v12.4.0 削除
    変更前
    @method static minValue(): \Illuminate\Support\Carbon

mixin

v11.0.0 以前から

static @method

static mixin(object|string $mixin): void
  1. v11.0.0 追加
    変更後
    @method static mixin($mixin): void
  2. v12.4.0 シグネチャ変更
    変更前
    @method static mixin($mixin): void
    変更後
    @method static mixin(object|string $mixin): void

now

v11.0.0 以前から

static @method

static now(\DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
  1. v11.0.0 追加
    変更後
    @method static now($tz = null): \Illuminate\Support\Carbon
  2. v12.1.0 シグネチャ変更
    変更前
    @method static now($tz = null): \Illuminate\Support\Carbon
    変更後
    @method static now($timezone = null): \Illuminate\Support\Carbon
  3. v12.4.0 シグネチャ変更
    変更前
    @method static now($timezone = null): \Illuminate\Support\Carbon
    変更後
    @method static now(DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
  4. v12.6.0 シグネチャ変更
    変更前
    @method static now(DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
    変更後
    @method static now(\DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon

parse

v11.0.0 以前から

static @method

static parse(\DateTimeInterface|\Carbon\WeekDay|\Carbon\Month|string|int|float|null $time, \DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
  1. v11.0.0 追加
    変更後
    @method static parse($time = null, $tz = null): \Illuminate\Support\Carbon
  2. v12.1.0 シグネチャ変更
    変更前
    @method static parse($time = null, $tz = null): \Illuminate\Support\Carbon
    変更後
    @method static parse($time = null, $timezone = null): \Illuminate\Support\Carbon
  3. v12.4.0 シグネチャ変更
    変更前
    @method static parse($time = null, $timezone = null): \Illuminate\Support\Carbon
    変更後
    @method static parse(DateTimeInterface|WeekDay|Month|string|int|float|null $time, DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
  4. v12.6.0 シグネチャ変更
    変更前
    @method static parse(DateTimeInterface|WeekDay|Month|string|int|float|null $time, DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
    変更後
    @method static parse(\DateTimeInterface|\Carbon\WeekDay|\Carbon\Month|string|int|float|null $time, \DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon

parseFromLocale

v12.4.0 から

static @method

static parseFromLocale(string $time, ?string $locale = null, \DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
  1. v12.4.0 追加
    変更後
    @method static parseFromLocale(string $time, ?string $locale = null, DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
  2. v12.6.0 シグネチャ変更
    変更前
    @method static parseFromLocale(string $time, ?string $locale = null, DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
    変更後
    @method static parseFromLocale(string $time, ?string $locale = null, \DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon

pluralUnit

v11.0.0 以前から

static @method

static pluralUnit(string $unit): string
  1. v11.0.0 追加
    変更後
    @method static pluralUnit(string $unit): string

rawCreateFromFormat

v12.4.0 から

static @method

static rawCreateFromFormat(string $format, string $time, $timezone = null): \Illuminate\Support\Carbon|null
  1. v12.4.0 追加
    変更後
    @method static rawCreateFromFormat(string $format, string $time, $timezone = null): \Illuminate\Support\Carbon|null

rawParse

v12.4.0 から

static @method

static rawParse(\DateTimeInterface|\Carbon\WeekDay|\Carbon\Month|string|int|float|null $time, \DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
  1. v12.4.0 追加
    変更後
    @method static rawParse(DateTimeInterface|WeekDay|Month|string|int|float|null $time, DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
  2. v12.6.0 シグネチャ変更
    変更前
    @method static rawParse(DateTimeInterface|WeekDay|Month|string|int|float|null $time, DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
    変更後
    @method static rawParse(\DateTimeInterface|\Carbon\WeekDay|\Carbon\Month|string|int|float|null $time, \DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon

resetMonthsOverflow

v11.0.0 以前から

static @method

static resetMonthsOverflow(): void
  1. v11.0.0 追加
    変更後
    @method static resetMonthsOverflow(): void

resetToStringFormat

v11.0.0 以前から

static @method

static resetToStringFormat(): void
  1. v11.0.0 追加
    変更後
    @method static resetToStringFormat(): void

resetYearsOverflow

v11.0.0 以前から

static @method

static resetYearsOverflow(): void
  1. v11.0.0 追加
    変更後
    @method static resetYearsOverflow(): void

serializeUsing

v11.0.0 以前から

static @method

static serializeUsing($callback): void
  1. v11.0.0 追加
    変更後
    @method static serializeUsing($callback): void

setFallbackLocale

v12.4.0 から

static @method

static setFallbackLocale(string $locale): void
  1. v12.4.0 追加
    変更後
    @method static setFallbackLocale(string $locale): void

setHumanDiffOptions

v11.0.0 以前から

static @method

static setHumanDiffOptions($humanDiffOptions): void
  1. v11.0.0 追加
    変更後
    @method static setHumanDiffOptions($humanDiffOptions): void

setLocale

v11.0.0 以前から

static @method

static setLocale(string $locale): void
  1. v11.0.0 追加
    変更後
    @method static setLocale($locale): bool
  2. v12.4.0 シグネチャ変更
    変更前
    @method static setLocale($locale): bool
    変更後
    @method static setLocale(string $locale): void

setMidDayAt

v11.0.0 以前から

static @method

static setMidDayAt($hour): void
  1. v11.0.0 追加
    変更後
    @method static setMidDayAt($hour): void

setTestNow

v11.0.0 以前から

static @method

static setTestNow(mixed $testNow = null): void
  1. v11.0.0 追加
    変更後
    @method static setTestNow($testNow = null): void
  2. v12.4.0 シグネチャ変更
    変更前
    @method static setTestNow($testNow = null): void
    変更後
    @method static setTestNow(mixed $testNow = null): void

setTestNowAndTimezone

v12.4.0 から

static @method

static setTestNowAndTimezone(mixed $testNow = null, $timezone = null): void
  1. v12.4.0 追加
    変更後
    @method static setTestNowAndTimezone(mixed $testNow = null, $timezone = null): void

setToStringFormat

v11.0.0 以前から

static @method

static setToStringFormat(string|\Closure|null $format): void
  1. v11.0.0 追加
    変更後
    @method static setToStringFormat($format): void
  2. v12.4.0 シグネチャ変更
    変更前
    @method static setToStringFormat($format): void
    変更後
    @method static setToStringFormat(string|Closure|null $format): void
  3. v12.6.0 シグネチャ変更
    変更前
    @method static setToStringFormat(string|Closure|null $format): void
    変更後
    @method static setToStringFormat(string|\Closure|null $format): void

setTranslator

v11.0.0 以前から

static @method

static setTranslator(\Symfony\Contracts\Translation\TranslatorInterface $translator): void
  1. v11.0.0 追加
    変更後
    @method static setTranslator(\Symfony\Component\Translation\TranslatorInterface $translator): void
  2. v12.1.0 シグネチャ変更
    変更前
    @method static setTranslator(\Symfony\Component\Translation\TranslatorInterface $translator): void
    変更後
    @method static setTranslator(\Symfony\Contracts\Translation\TranslatorInterface $translator): void

setUtf8

v11.0.0 以前から

v12.4.0 で削除

  1. v11.0.0 追加
    変更後
    @method static setUtf8($utf8): void
  2. v12.4.0 削除
    変更前
    @method static setUtf8($utf8): void

setWeekendDays

v11.0.0 以前から

static @method

static setWeekendDays($days): void
  1. v11.0.0 追加
    変更後
    @method static setWeekendDays($days): void

setWeekEndsAt

v11.0.0 以前から

static @method

static setWeekEndsAt($day): void
  1. v11.0.0 追加
    変更後
    @method static setWeekEndsAt($day): void

setWeekStartsAt

v11.0.0 以前から

static @method

static setWeekStartsAt($day): void
  1. v11.0.0 追加
    変更後
    @method static setWeekStartsAt($day): void

shouldOverflowMonths

v11.0.0 以前から

static @method

static shouldOverflowMonths(): bool
  1. v11.0.0 追加
    変更後
    @method static shouldOverflowMonths(): bool

shouldOverflowYears

v11.0.0 以前から

static @method

static shouldOverflowYears(): bool
  1. v11.0.0 追加
    変更後
    @method static shouldOverflowYears(): bool

singularUnit

v11.0.0 以前から

static @method

static singularUnit(string $unit): string
  1. v11.0.0 追加
    変更後
    @method static singularUnit(string $unit): string

sleep

v12.4.0 から

static @method

static sleep(int|float $seconds): void
  1. v12.4.0 追加
    変更後
    @method static sleep(int|float $seconds): void

today

v11.0.0 以前から

static @method

static today(\DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
  1. v11.0.0 追加
    変更後
    @method static today($tz = null): \Illuminate\Support\Carbon
  2. v12.1.0 シグネチャ変更
    変更前
    @method static today($tz = null): \Illuminate\Support\Carbon
    変更後
    @method static today($timezone = null): \Illuminate\Support\Carbon
  3. v12.4.0 シグネチャ変更
    変更前
    @method static today($timezone = null): \Illuminate\Support\Carbon
    変更後
    @method static today(DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
  4. v12.6.0 シグネチャ変更
    変更前
    @method static today(DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
    変更後
    @method static today(\DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon

tomorrow

v11.0.0 以前から

static @method

static tomorrow(\DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
  1. v11.0.0 追加
    変更後
    @method static tomorrow($tz = null): \Illuminate\Support\Carbon
  2. v12.1.0 シグネチャ変更
    変更前
    @method static tomorrow($tz = null): \Illuminate\Support\Carbon
    変更後
    @method static tomorrow($timezone = null): \Illuminate\Support\Carbon
  3. v12.4.0 シグネチャ変更
    変更前
    @method static tomorrow($timezone = null): \Illuminate\Support\Carbon
    変更後
    @method static tomorrow(DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
  4. v12.6.0 シグネチャ変更
    変更前
    @method static tomorrow(DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
    変更後
    @method static tomorrow(\DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon

translateTimeString

v12.4.0 から

static @method

static translateTimeString(string $timeString, ?string $from = null, ?string $to = null, int $mode = \Carbon\CarbonInterface::TRANSLATE_ALL): string
  1. v12.4.0 追加
    変更後
    @method static translateTimeString(string $timeString, ?string $from = null, ?string $to = null, int $mode = CarbonInterface::TRANSLATE_ALL): string
  2. v12.6.0 シグネチャ変更
    変更前
    @method static translateTimeString(string $timeString, ?string $from = null, ?string $to = null, int $mode = CarbonInterface::TRANSLATE_ALL): string
    変更後
    @method static translateTimeString(string $timeString, ?string $from = null, ?string $to = null, int $mode = \Carbon\CarbonInterface::TRANSLATE_ALL): string

translateWith

v12.4.0 から

static @method

static translateWith(\Symfony\Contracts\Translation\TranslatorInterface $translator, string $key, array $parameters = [], $number = null): string
  1. v12.4.0 追加
    変更後
    @method static translateWith(TranslatorInterface $translator, string $key, array $parameters = [], $number = null): string
  2. v12.6.0 シグネチャ変更
    変更前
    @method static translateWith(TranslatorInterface $translator, string $key, array $parameters = [], $number = null): string
    変更後
    @method static translateWith(\Symfony\Contracts\Translation\TranslatorInterface $translator, string $key, array $parameters = [], $number = null): string

use

v11.0.0 以前から

static @method

static use(mixed $handler): mixed
  1. v11.0.0 追加
    変更後
    @method static use(mixed $handler): mixed

useCallable

v11.0.0 以前から

static @method

static useCallable(callable $callable): void
  1. v11.0.0 追加
    変更後
    @method static useCallable(callable $callable): void

useClass

v11.0.0 以前から

static @method

static useClass(string $dateClass): void
  1. v11.0.0 追加
    変更後
    @method static useClass(string $dateClass): void

useDefault

v11.0.0 以前から

static @method

static useDefault(): void
  1. v11.0.0 追加
    変更後
    @method static useDefault(): void

useFactory

v11.0.0 以前から

static @method

static useFactory(object $factory): void
  1. v11.0.0 追加
    変更後
    @method static useFactory(object $factory): void

useMonthsOverflow

v11.0.0 以前から

static @method

static useMonthsOverflow($monthsOverflow = true): void
  1. v11.0.0 追加
    変更後
    @method static useMonthsOverflow($monthsOverflow = true): void

useStrictMode

v11.0.0 以前から

static @method

static useStrictMode($strictModeEnabled = true): void
  1. v11.0.0 追加
    変更後
    @method static useStrictMode($strictModeEnabled = true): void

useYearsOverflow

v11.0.0 以前から

static @method

static useYearsOverflow($yearsOverflow = true): void
  1. v11.0.0 追加
    変更後
    @method static useYearsOverflow($yearsOverflow = true): void

withTestNow

v12.4.0 から

static @method

static withTestNow(mixed $testNow, callable $callback): mixed
  1. v12.4.0 追加
    変更後
    @method static withTestNow(mixed $testNow, callable $callback): mixed

withTimeZone

v12.4.0 から

static @method

static withTimeZone(\DateTimeZone|string|int|null $timezone): static
  1. v12.4.0 追加
    変更後
    @method static withTimeZone(DateTimeZone|string|int|null $timezone): static
  2. v12.6.0 シグネチャ変更
    変更前
    @method static withTimeZone(DateTimeZone|string|int|null $timezone): static
    変更後
    @method static withTimeZone(\DateTimeZone|string|int|null $timezone): static

yesterday

v11.0.0 以前から

static @method

static yesterday(\DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
  1. v11.0.0 追加
    変更後
    @method static yesterday($tz = null): \Illuminate\Support\Carbon
  2. v12.1.0 シグネチャ変更
    変更前
    @method static yesterday($tz = null): \Illuminate\Support\Carbon
    変更後
    @method static yesterday($timezone = null): \Illuminate\Support\Carbon
  3. v12.4.0 シグネチャ変更
    変更前
    @method static yesterday($timezone = null): \Illuminate\Support\Carbon
    変更後
    @method static yesterday(DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
  4. v12.6.0 シグネチャ変更
    変更前
    @method static yesterday(DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon
    変更後
    @method static yesterday(\DateTimeZone|string|int|null $timezone = null): \Illuminate\Support\Carbon