class Date extends Facade

Constants

DEFAULT_FACADE

Properties

static protected $app

The application instance being facaded.

from  Facade
static protected array $resolvedInstance

The resolved object instances.

from  Facade
static protected bool $cached

Indicates if the resolved instance should be cached.

from  Facade

Methods

static void
resolved(Closure $callback)

Run a Closure when the facade has been resolved.

from  Facade
static 
spy()

Convert the facade into a Mockery spy.

from  Facade
static 
partialMock()

Initiate a partial mock on the facade.

from  Facade
static 
shouldReceive()

Initiate a mock expectation on the facade.

from  Facade
static 
expects()

Initiate a mock expectation on the facade.

from  Facade
static 
createFreshMockInstance()

Create a fresh mock instance for the given class.

from  Facade
static 
createMock()

Create a fresh mock instance for the given class.

from  Facade
static bool
isMock()

Determines whether a mock is set as the instance of the facade.

from  Facade
static string|null
getMockableClass()

Get the mockable class for the bound instance.

from  Facade
static 
swap(mixed $instance)

Hotswap the underlying instance behind the facade.

from  Facade
static bool
isFake()

Determines whether a "fake" has been set as the facade instance.

from  Facade
static mixed
getFacadeRoot()

Get the root object behind the facade.

from  Facade
static string
getFacadeAccessor()

Get the registered name of the component.

static mixed
resolveFacadeInstance(string $name)

Resolve the facade root instance from the container.

static void
clearResolvedInstance(string|null $name = null)

Clear a resolved facade instance.

from  Facade
static void
clearResolvedInstances()

Clear all of the resolved instances.

from  Facade
static Collection
defaultAliases()

Get the application default aliases.

from  Facade
static 
getFacadeApplication()

Get the application instance behind the facade.

from  Facade
static void
setFacadeApplication(mixed $app)

Set the application instance.

from  Facade
static 
__callStatic(string $method, array $args)

Handle dynamic, static calls to the object.

from  Facade
static void
use(mixed $handler)

No description

static void
useDefault()

No description

static void
useCallable(callable $callable)

No description

static void
useClass(string $dateClass)

No description

static void
useFactory(Factory $factory)

No description

static void
flushState()

No description

static bool
canBeCreatedFromFormat(?string $date, string $format)

No description

static CarbonInterface
create(mixed $year = '0', mixed $month = '1', mixed $day = '1', mixed $hour = '0', mixed $minute = '0', mixed $second = '0', mixed $timezone = 'null')

No description

static CarbonInterface
createFromDate(mixed $year = 'null', mixed $month = 'null', mixed $day = 'null', mixed $timezone = 'null')

No description

static CarbonInterface
createFromFormat(mixed $format, mixed $time, mixed $timezone = 'null')

No description

static CarbonInterface
createFromIsoFormat(string $format, string $time, mixed $timezone = 'null', ?string $locale = '\'en\'', TranslatorInterface $translator = 'null')

No description

static CarbonInterface
createFromLocaleFormat(string $format, string $locale, string $time, mixed $timezone = 'null')

No description

static CarbonInterface
createFromLocaleIsoFormat(string $format, string $locale, string $time, mixed $timezone = 'null')

No description

static CarbonInterface
createFromTime(mixed $hour = '0', mixed $minute = '0', mixed $second = '0', mixed $timezone = 'null')

No description

static CarbonInterface
createFromTimeString(string $time, DateTimeZone|string|int|null $timezone = 'null')

No description

static CarbonInterface
createFromTimestamp(string|int|float $timestamp, DateTimeZone|string|int|null $timezone = 'null')

No description

static CarbonInterface
createFromTimestampMs(string|int|float $timestamp, DateTimeZone|string|int|null $timezone = 'null')

No description

static CarbonInterface
createFromTimestampMsUTC(mixed $timestamp)

No description

static CarbonInterface
createFromTimestampUTC(float|int|string $timestamp)

No description

static CarbonInterface
createMidnightDate(mixed $year = 'null', mixed $month = 'null', mixed $day = 'null', mixed $timezone = 'null')

No description

static CarbonInterface
createSafe(mixed $year = 'null', mixed $month = 'null', mixed $day = 'null', mixed $hour = 'null', mixed $minute = 'null', mixed $second = 'null', mixed $timezone = 'null')

No description

static CarbonInterface
createStrict(?int $year = '0', ?int $month = '1', ?int $day = '1', ?int $hour = '0', ?int $minute = '0', ?int $second = '0', mixed $timezone = 'null')

No description

static void
disableHumanDiffOption(mixed $humanDiffOption)

No description

static void
enableHumanDiffOption(mixed $humanDiffOption)

No description

static mixed
executeWithLocale(string $locale, callable $func)

No description

static CarbonInterface
fromSerialized(mixed $value)

No description

static array
getAvailableLocales()

No description

static array
getAvailableLocalesInfo()

No description

static array
getDays()

No description

static null|string
getFallbackLocale()

No description

static array
getFormatsToIsoReplacements()

No description

static int
getHumanDiffOptions()

No description

static array
getIsoUnits()

No description

static array|false
getLastErrors()

No description

static string
getLocale()

No description

static int
getMidDayAt()

No description

static string
getTimeFormatByPrecision(string $unitPrecision)

No description

static Closure|string
getTranslationMessageWith(mixed $translator, string $key, ?string $locale = 'null', ?string $default = 'null')

No description

static CarbonInterface
getTestNow()

No description

static TranslatorInterface
getTranslator()

No description

static int
getWeekEndsAt(?string $locale = 'null')

No description

static int
getWeekStartsAt(?string $locale = 'null')

No description

static array
getWeekendDays()

No description

static bool
hasFormat(string $date, string $format)

No description

static bool
hasFormatWithModifiers(string $date, string $format)

No description

static bool
hasMacro(mixed $name)

No description

static bool
hasRelativeKeywords(?string $time)

No description

static bool
hasTestNow()

No description

static CarbonInterface
instance(DateTimeInterface $date)

No description

static bool
isImmutable()

No description

static bool
isModifiableUnit(mixed $unit)

No description

static bool
isMutable()

No description

static bool
isStrictModeEnabled()

No description

static bool
localeHasDiffOneDayWords(string $locale)

No description

static bool
localeHasDiffSyntax(string $locale)

No description

static bool
localeHasDiffTwoDayWords(string $locale)

No description

static bool
localeHasPeriodSyntax(mixed $locale)

No description

static bool
localeHasShortUnits(string $locale)

No description

static void
macro(string $name, ?callable $macro)

No description

static CarbonInterface
make(mixed $var, DateTimeZone|string|null $timezone = 'null')

No description

static void
mixin(object|string $mixin)

No description

static CarbonInterface
now(DateTimeZone|string|int|null $timezone = 'null')

No description

static CarbonInterface
parse(Month|string|int|float|null $time, DateTimeZone|string|int|null $timezone = 'null')

No description

static CarbonInterface
parseFromLocale(string $time, ?string $locale = 'null', DateTimeZone|string|int|null $timezone = 'null')

No description

static string
pluralUnit(string $unit)

No description

static CarbonInterface
rawCreateFromFormat(string $format, string $time, mixed $timezone = 'null')

No description

static CarbonInterface
rawParse(Month|string|int|float|null $time, DateTimeZone|string|int|null $timezone = 'null')

No description

static void
resetMonthsOverflow()

No description

static void
resetToStringFormat()

No description

static void
resetYearsOverflow()

No description

static void
serializeUsing(mixed $callback)

No description

static void
setHumanDiffOptions(mixed $humanDiffOptions)

No description

static void
setFallbackLocale(string $locale)

No description

static void
setLocale(string $locale)

No description

static void
setMidDayAt(mixed $hour)

No description

static void
setTestNow(mixed $testNow = 'null')

No description

static void
setTestNowAndTimezone(mixed $testNow = 'null', mixed $timezone = 'null')

No description

static void
setToStringFormat(Closure|string $format)

No description

static void
setTranslator(TranslatorInterface $translator)

No description

static void
setWeekendDays(mixed $days)

No description

static bool
shouldOverflowMonths()

No description

static bool
shouldOverflowYears()

No description

static string
singularUnit(string $unit)

No description

static void
sleep(float|int $seconds)

No description

static CarbonInterface
today(DateTimeZone|string|int|null $timezone = 'null')

No description

static CarbonInterface
tomorrow(DateTimeZone|string|int|null $timezone = 'null')

No description

static string
translateTimeString(string $timeString, ?string $from = 'null', ?string $to = 'null', int $mode = '\\Carbon\\CarbonInterface::TRANSLATE_ALL')

No description

static string
translateWith(TranslatorInterface $translator, string $key, array $parameters = '[]', mixed $number = 'null')

No description

static void
useMonthsOverflow(mixed $monthsOverflow = 'true')

No description

static void
useStrictMode(mixed $strictModeEnabled = 'true')

No description

static void
useYearsOverflow(mixed $yearsOverflow = 'true')

No description

static mixed
withTestNow(mixed $testNow, callable $callback)

No description

static Factory
withTimeZone(DateTimeZone|int|string $timezone)

No description

static CarbonInterface
yesterday(DateTimeZone|string|int|null $timezone = 'null')

No description

Details

in Facade at line 55
static void resolved(Closure $callback)

Run a Closure when the facade has been resolved.

Boot-only. The callback is registered on the worker-global container and runs for every subsequent resolution of the facade accessor.

Parameters

Closure $callback

Return Value

void

in Facade at line 71
static spy()

Convert the facade into a Mockery spy.

in Facade at line 89
static partialMock()

Initiate a partial mock on the facade.

Tests only. Swaps the resolved facade instance for the worker lifetime.

in Facade at line 105
static shouldReceive()

Initiate a mock expectation on the facade.

Tests only. Swaps the resolved facade instance for the worker lifetime.

in Facade at line 121
static expects()

Initiate a mock expectation on the facade.

Tests only. Swaps the resolved facade instance for the worker lifetime.

in Facade at line 135
static protected createFreshMockInstance()

Create a fresh mock instance for the given class.

in Facade at line 147
static protected createMock()

Create a fresh mock instance for the given class.

in Facade at line 157
static protected bool isMock()

Determines whether a mock is set as the instance of the facade.

Return Value

bool

in Facade at line 168
static protected string|null getMockableClass()

Get the mockable class for the bound instance.

Return Value

string|null

in Facade at line 184
static swap(mixed $instance)

Hotswap the underlying instance behind the facade.

Tests only. Replaces the worker-wide resolved facade instance and container binding; runtime use races across coroutines and changes every subsequent facade call.

Parameters

mixed $instance

in Facade at line 196
static bool isFake()

Determines whether a "fake" has been set as the facade instance.

Return Value

bool

in Facade at line 207
static mixed getFacadeRoot()

Get the root object behind the facade.

Return Value

mixed

at line 118
static protected string getFacadeAccessor()

Get the registered name of the component.

Return Value

string

at line 126
static protected mixed resolveFacadeInstance(string $name)

Resolve the facade root instance from the container.

Parameters

string $name

Return Value

mixed

in Facade at line 246
static void clearResolvedInstance(string|null $name = null)

Clear a resolved facade instance.

Boot or tests only. Clears a worker-wide facade cache entry; concurrent coroutines may still hold the previous resolved instance.

Parameters

string|null $name

Return Value

void

in Facade at line 257
static void clearResolvedInstances()

Clear all of the resolved instances.

Boot or tests only. Clears the worker-wide facade cache; concurrent coroutines may still hold previously resolved instances.

Return Value

void

in Facade at line 265
static Collection defaultAliases()

Get the application default aliases.

Return Value

Collection

in Facade at line 324
static getFacadeApplication()

Get the application instance behind the facade.

in Facade at line 337
static void setFacadeApplication(mixed $app)

Set the application instance.

Tests only. Replaces the worker-wide facade application reference; runtime use races across coroutines and breaks every facade lookup.

Parameters

mixed $app

Return Value

void

in Facade at line 347
static __callStatic(string $method, array $args)

Handle dynamic, static calls to the object.

Parameters

string $method
array $args

Exceptions

RuntimeException

at line 111
static void use(mixed $handler)

No description

Parameters

mixed $handler

Return Value

void

at line 111
static void useDefault()

No description

Return Value

void

at line 111
static void useCallable(callable $callable)

No description

Parameters

callable $callable

Return Value

void

at line 111
static void useClass(string $dateClass)

No description

Parameters

string $dateClass

Return Value

void

at line 111
static void useFactory(Factory $factory)

No description

Parameters

Factory $factory

Return Value

void

at line 111
static void flushState()

No description

Return Value

void

at line 111
static bool canBeCreatedFromFormat(?string $date, string $format)

No description

Parameters

?string $date
string $format

Return Value

bool

at line 111
static CarbonInterface create(mixed $year = '0', mixed $month = '1', mixed $day = '1', mixed $hour = '0', mixed $minute = '0', mixed $second = '0', mixed $timezone = 'null')

No description

Parameters

mixed $year
mixed $month
mixed $day
mixed $hour
mixed $minute
mixed $second
mixed $timezone

Return Value

CarbonInterface

at line 111
static CarbonInterface createFromDate(mixed $year = 'null', mixed $month = 'null', mixed $day = 'null', mixed $timezone = 'null')

No description

Parameters

mixed $year
mixed $month
mixed $day
mixed $timezone

Return Value

CarbonInterface

at line 111
static CarbonInterface createFromFormat(mixed $format, mixed $time, mixed $timezone = 'null')

No description

Parameters

mixed $format
mixed $time
mixed $timezone

Return Value

CarbonInterface

at line 111
static CarbonInterface createFromIsoFormat(string $format, string $time, mixed $timezone = 'null', ?string $locale = '\'en\'', TranslatorInterface $translator = 'null')

No description

Parameters

string $format
string $time
mixed $timezone
?string $locale
TranslatorInterface $translator

Return Value

CarbonInterface

at line 111
static CarbonInterface createFromLocaleFormat(string $format, string $locale, string $time, mixed $timezone = 'null')

No description

Parameters

string $format
string $locale
string $time
mixed $timezone

Return Value

CarbonInterface

at line 111
static CarbonInterface createFromLocaleIsoFormat(string $format, string $locale, string $time, mixed $timezone = 'null')

No description

Parameters

string $format
string $locale
string $time
mixed $timezone

Return Value

CarbonInterface

at line 111
static CarbonInterface createFromTime(mixed $hour = '0', mixed $minute = '0', mixed $second = '0', mixed $timezone = 'null')

No description

Parameters

mixed $hour
mixed $minute
mixed $second
mixed $timezone

Return Value

CarbonInterface

at line 111
static CarbonInterface createFromTimeString(string $time, DateTimeZone|string|int|null $timezone = 'null')

No description

Parameters

string $time
DateTimeZone|string|int|null $timezone

Return Value

CarbonInterface

at line 111
static CarbonInterface createFromTimestamp(string|int|float $timestamp, DateTimeZone|string|int|null $timezone = 'null')

No description

Parameters

string|int|float $timestamp
DateTimeZone|string|int|null $timezone

Return Value

CarbonInterface

at line 111
static CarbonInterface createFromTimestampMs(string|int|float $timestamp, DateTimeZone|string|int|null $timezone = 'null')

No description

Parameters

string|int|float $timestamp
DateTimeZone|string|int|null $timezone

Return Value

CarbonInterface

at line 111
static CarbonInterface createFromTimestampMsUTC(mixed $timestamp)

No description

Parameters

mixed $timestamp

Return Value

CarbonInterface

at line 111
static CarbonInterface createFromTimestampUTC(float|int|string $timestamp)

No description

Parameters

float|int|string $timestamp

Return Value

CarbonInterface

at line 111
static CarbonInterface createMidnightDate(mixed $year = 'null', mixed $month = 'null', mixed $day = 'null', mixed $timezone = 'null')

No description

Parameters

mixed $year
mixed $month
mixed $day
mixed $timezone

Return Value

CarbonInterface

at line 111
static CarbonInterface createSafe(mixed $year = 'null', mixed $month = 'null', mixed $day = 'null', mixed $hour = 'null', mixed $minute = 'null', mixed $second = 'null', mixed $timezone = 'null')

No description

Parameters

mixed $year
mixed $month
mixed $day
mixed $hour
mixed $minute
mixed $second
mixed $timezone

Return Value

CarbonInterface

at line 111
static CarbonInterface createStrict(?int $year = '0', ?int $month = '1', ?int $day = '1', ?int $hour = '0', ?int $minute = '0', ?int $second = '0', mixed $timezone = 'null')

No description

Parameters

?int $year
?int $month
?int $day
?int $hour
?int $minute
?int $second
mixed $timezone

Return Value

CarbonInterface

at line 111
static void disableHumanDiffOption(mixed $humanDiffOption)

No description

Parameters

mixed $humanDiffOption

Return Value

void

at line 111
static void enableHumanDiffOption(mixed $humanDiffOption)

No description

Parameters

mixed $humanDiffOption

Return Value

void

at line 111
static mixed executeWithLocale(string $locale, callable $func)

No description

Parameters

string $locale
callable $func

Return Value

mixed

at line 111
static CarbonInterface fromSerialized(mixed $value)

No description

Parameters

mixed $value

Return Value

CarbonInterface

at line 111
static array getAvailableLocales()

No description

Return Value

array

at line 111
static array getAvailableLocalesInfo()

No description

Return Value

array

at line 111
static array getDays()

No description

Return Value

array

at line 111
static null|string getFallbackLocale()

No description

Return Value

null|string

at line 111
static array getFormatsToIsoReplacements()

No description

Return Value

array

at line 111
static int getHumanDiffOptions()

No description

Return Value

int

at line 111
static array getIsoUnits()

No description

Return Value

array

at line 111
static array|false getLastErrors()

No description

Return Value

array|false

at line 111
static string getLocale()

No description

Return Value

string

at line 111
static int getMidDayAt()

No description

Return Value

int

at line 111
static string getTimeFormatByPrecision(string $unitPrecision)

No description

Parameters

string $unitPrecision

Return Value

string

at line 111
static Closure|string getTranslationMessageWith(mixed $translator, string $key, ?string $locale = 'null', ?string $default = 'null')

No description

Parameters

mixed $translator
string $key
?string $locale
?string $default

Return Value

Closure|string

at line 111
static CarbonInterface getTestNow()

No description

Return Value

CarbonInterface

at line 111
static TranslatorInterface getTranslator()

No description

Return Value

TranslatorInterface

at line 111
static int getWeekEndsAt(?string $locale = 'null')

No description

Parameters

?string $locale

Return Value

int

at line 111
static int getWeekStartsAt(?string $locale = 'null')

No description

Parameters

?string $locale

Return Value

int

at line 111
static array getWeekendDays()

No description

Return Value

array

at line 111
static bool hasFormat(string $date, string $format)

No description

Parameters

string $date
string $format

Return Value

bool

at line 111
static bool hasFormatWithModifiers(string $date, string $format)

No description

Parameters

string $date
string $format

Return Value

bool

at line 111
static bool hasMacro(mixed $name)

No description

Parameters

mixed $name

Return Value

bool

at line 111
static bool hasRelativeKeywords(?string $time)

No description

Parameters

?string $time

Return Value

bool

at line 111
static bool hasTestNow()

No description

Return Value

bool

at line 111
static CarbonInterface instance(DateTimeInterface $date)

No description

Parameters

DateTimeInterface $date

Return Value

CarbonInterface

at line 111
static bool isImmutable()

No description

Return Value

bool

at line 111
static bool isModifiableUnit(mixed $unit)

No description

Parameters

mixed $unit

Return Value

bool

at line 111
static bool isMutable()

No description

Return Value

bool

at line 111
static bool isStrictModeEnabled()

No description

Return Value

bool

at line 111
static bool localeHasDiffOneDayWords(string $locale)

No description

Parameters

string $locale

Return Value

bool

at line 111
static bool localeHasDiffSyntax(string $locale)

No description

Parameters

string $locale

Return Value

bool

at line 111
static bool localeHasDiffTwoDayWords(string $locale)

No description

Parameters

string $locale

Return Value

bool

at line 111
static bool localeHasPeriodSyntax(mixed $locale)

No description

Parameters

mixed $locale

Return Value

bool

at line 111
static bool localeHasShortUnits(string $locale)

No description

Parameters

string $locale

Return Value

bool

at line 111
static void macro(string $name, ?callable $macro)

No description

Parameters

string $name
?callable $macro

Return Value

void

at line 111
static CarbonInterface make(mixed $var, DateTimeZone|string|null $timezone = 'null')

No description

Parameters

mixed $var
DateTimeZone|string|null $timezone

Return Value

CarbonInterface

at line 111
static void mixin(object|string $mixin)

No description

Parameters

object|string $mixin

Return Value

void

at line 111
static CarbonInterface now(DateTimeZone|string|int|null $timezone = 'null')

No description

Parameters

DateTimeZone|string|int|null $timezone

Return Value

CarbonInterface

at line 111
static CarbonInterface parse(Month|string|int|float|null $time, DateTimeZone|string|int|null $timezone = 'null')

No description

Parameters

Month|string|int|float|null $time
DateTimeZone|string|int|null $timezone

Return Value

CarbonInterface

at line 111
static CarbonInterface parseFromLocale(string $time, ?string $locale = 'null', DateTimeZone|string|int|null $timezone = 'null')

No description

Parameters

string $time
?string $locale
DateTimeZone|string|int|null $timezone

Return Value

CarbonInterface

at line 111
static string pluralUnit(string $unit)

No description

Parameters

string $unit

Return Value

string

at line 111
static CarbonInterface rawCreateFromFormat(string $format, string $time, mixed $timezone = 'null')

No description

Parameters

string $format
string $time
mixed $timezone

Return Value

CarbonInterface

at line 111
static CarbonInterface rawParse(Month|string|int|float|null $time, DateTimeZone|string|int|null $timezone = 'null')

No description

Parameters

Month|string|int|float|null $time
DateTimeZone|string|int|null $timezone

Return Value

CarbonInterface

at line 111
static void resetMonthsOverflow()

No description

Return Value

void

at line 111
static void resetToStringFormat()

No description

Return Value

void

at line 111
static void resetYearsOverflow()

No description

Return Value

void

at line 111
static void serializeUsing(mixed $callback)

No description

Parameters

mixed $callback

Return Value

void

at line 111
static void setHumanDiffOptions(mixed $humanDiffOptions)

No description

Parameters

mixed $humanDiffOptions

Return Value

void

at line 111
static void setFallbackLocale(string $locale)

No description

Parameters

string $locale

Return Value

void

at line 111
static void setLocale(string $locale)

No description

Parameters

string $locale

Return Value

void

at line 111
static void setMidDayAt(mixed $hour)

No description

Parameters

mixed $hour

Return Value

void

at line 111
static void setTestNow(mixed $testNow = 'null')

No description

Parameters

mixed $testNow

Return Value

void

at line 111
static void setTestNowAndTimezone(mixed $testNow = 'null', mixed $timezone = 'null')

No description

Parameters

mixed $testNow
mixed $timezone

Return Value

void

at line 111
static void setToStringFormat(Closure|string $format)

No description

Parameters

Closure|string $format

Return Value

void

at line 111
static void setTranslator(TranslatorInterface $translator)

No description

Parameters

TranslatorInterface $translator

Return Value

void

at line 111
static void setWeekendDays(mixed $days)

No description

Parameters

mixed $days

Return Value

void

at line 111
static bool shouldOverflowMonths()

No description

Return Value

bool

at line 111
static bool shouldOverflowYears()

No description

Return Value

bool

at line 111
static string singularUnit(string $unit)

No description

Parameters

string $unit

Return Value

string

at line 111
static void sleep(float|int $seconds)

No description

Parameters

float|int $seconds

Return Value

void

at line 111
static CarbonInterface today(DateTimeZone|string|int|null $timezone = 'null')

No description

Parameters

DateTimeZone|string|int|null $timezone

Return Value

CarbonInterface

at line 111
static CarbonInterface tomorrow(DateTimeZone|string|int|null $timezone = 'null')

No description

Parameters

DateTimeZone|string|int|null $timezone

Return Value

CarbonInterface

at line 111
static string translateTimeString(string $timeString, ?string $from = 'null', ?string $to = 'null', int $mode = '\\Carbon\\CarbonInterface::TRANSLATE_ALL')

No description

Parameters

string $timeString
?string $from
?string $to
int $mode

Return Value

string

at line 111
static string translateWith(TranslatorInterface $translator, string $key, array $parameters = '[]', mixed $number = 'null')

No description

Parameters

TranslatorInterface $translator
string $key
array $parameters
mixed $number

Return Value

string

at line 111
static void useMonthsOverflow(mixed $monthsOverflow = 'true')

No description

Parameters

mixed $monthsOverflow

Return Value

void

at line 111
static void useStrictMode(mixed $strictModeEnabled = 'true')

No description

Parameters

mixed $strictModeEnabled

Return Value

void

at line 111
static void useYearsOverflow(mixed $yearsOverflow = 'true')

No description

Parameters

mixed $yearsOverflow

Return Value

void

at line 111
static mixed withTestNow(mixed $testNow, callable $callback)

No description

Parameters

mixed $testNow
callable $callback

Return Value

mixed

at line 111
static Factory withTimeZone(DateTimeZone|int|string $timezone)

No description

Parameters

DateTimeZone|int|string $timezone

Return Value

Factory

at line 111
static CarbonInterface yesterday(DateTimeZone|string|int|null $timezone = 'null')

No description

Parameters

DateTimeZone|string|int|null $timezone

Return Value

CarbonInterface