class Date extends Facade

Constants

DEFAULT_FACADE

Properties

static protected Container|null $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 MockInterface|null
spy()

Convert the facade into a Mockery spy.

from  Facade
static MockInterface
partialMock()

Initiate a partial mock on the facade.

from  Facade
static CompositeExpectation|Expectation|HigherOrderMessage
shouldReceive()

Initiate a mock expectation on the facade.

from  Facade
static CompositeExpectation|Expectation|ExpectsHigherOrderMessage
expects()

Initiate a mock expectation on the facade.

from  Facade
static MockInterface
createFreshMockInstance()

Create a fresh mock instance for the given class.

from  Facade
static MockInterface
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 void
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 Container|null
getFacadeApplication()

Get the application instance behind the facade.

from  Facade
static void
setFacadeApplication(Container|null $app)

Set the application instance.

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

Handle dynamic, static calls to the object.

from  Facade
static bool
canBeCreatedFromFormat(string|null $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|null $locale = '\'en\'', TranslatorInterface|null $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
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
createFromTimeString(string $time, DateTimeZone|string|int|null $timezone = 'null')

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|null $year = '0', int|null $month = '1', int|null $day = '1', int|null $hour = '0', int|null $minute = '0', int|null $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 void
flushState()

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 CarbonInterface
getTestNow()

No description

static string
getTimeFormatByPrecision(string $unitPrecision)

No description

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

No description

static TranslatorInterface
getTranslator()

No description

static array
getWeekendDays()

No description

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

No description

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

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|null $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|null $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|null $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
setFallbackLocale(string $locale)

No description

static void
setHumanDiffOptions(mixed $humanDiffOptions)

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|null $from = 'null', string|null $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
use(mixed $handler)

No description

static void
useCallable(callable $callable)

No description

static void
useClass(string $dateClass)

No description

static void
useDefault()

No description

static void
useFactory(Factory $factory)

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 61
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 81
static MockInterface|null spy()

Convert the facade into a Mockery spy.

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

Return Value

MockInterface|null

in Facade at line 99
static MockInterface partialMock()

Initiate a partial mock on the facade.

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

Return Value

MockInterface

in Facade at line 115
static CompositeExpectation|Expectation|HigherOrderMessage shouldReceive()

Initiate a mock expectation on the facade.

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

Return Value

CompositeExpectation|Expectation|HigherOrderMessage

in Facade at line 131
static CompositeExpectation|Expectation|ExpectsHigherOrderMessage expects()

Initiate a mock expectation on the facade.

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

Return Value

CompositeExpectation|Expectation|ExpectsHigherOrderMessage

in Facade at line 145
static protected MockInterface createFreshMockInstance()

Create a fresh mock instance for the given class.

Return Value

MockInterface

in Facade at line 157
static protected MockInterface createMock()

Create a fresh mock instance for the given class.

Return Value

MockInterface

in Facade at line 167
static protected bool isMock()

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

Return Value

bool

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

Get the mockable class for the bound instance.

Return Value

string|null

in Facade at line 194
static void 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

Return Value

void

in Facade at line 206
static bool isFake()

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

Return Value

bool

in Facade at line 217
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 256
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 267
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 275
static Collection defaultAliases()

Get the application default aliases.

Return Value

Collection

in Facade at line 335
static Container|null getFacadeApplication()

Get the application instance behind the facade.

Return Value

Container|null

in Facade at line 346
static void setFacadeApplication(Container|null $app)

Set the application instance.

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

Parameters

Container|null $app

Return Value

void

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

Handle dynamic, static calls to the object.

Parameters

string $method
array $args

Return Value

mixed

Exceptions

RuntimeException

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

No description

Parameters

string|null $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|null $locale = '\'en\'', TranslatorInterface|null $translator = 'null')

No description

Parameters

string $format
string $time
mixed $timezone
string|null $locale
TranslatorInterface|null $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 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 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 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|null $year = '0', int|null $month = '1', int|null $day = '1', int|null $hour = '0', int|null $minute = '0', int|null $second = '0', mixed $timezone = 'null')

No description

Parameters

int|null $year
int|null $month
int|null $day
int|null $hour
int|null $minute
int|null $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 void flushState()

No description

Return Value

void

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 CarbonInterface getTestNow()

No description

Return Value

CarbonInterface

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|null $locale = 'null', string|null $default = 'null')

No description

Parameters

mixed $translator
string $key
string|null $locale
string|null $default

Return Value

Closure|string

at line 111
static TranslatorInterface getTranslator()

No description

Return Value

TranslatorInterface

at line 111
static array getWeekendDays()

No description

Return Value

array

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

No description

Parameters

string|null $locale

Return Value

int

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

No description

Parameters

string|null $locale

Return Value

int

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|null $time)

No description

Parameters

string|null $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|null $macro)

No description

Parameters

string $name
callable|null $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|null $locale = 'null', DateTimeZone|string|int|null $timezone = 'null')

No description

Parameters

string $time
string|null $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 setFallbackLocale(string $locale)

No description

Parameters

string $locale

Return Value

void

at line 111
static void setHumanDiffOptions(mixed $humanDiffOptions)

No description

Parameters

mixed $humanDiffOptions

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|null $from = 'null', string|null $to = 'null', int $mode = '\\Carbon\\CarbonInterface::TRANSLATE_ALL')

No description

Parameters

string $timeString
string|null $from
string|null $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 use(mixed $handler)

No description

Parameters

mixed $handler

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 useDefault()

No description

Return Value

void

at line 111
static void useFactory(Factory $factory)

No description

Parameters

Factory $factory

Return Value

void

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