Argon

Umbrella class.

 class Winter\Storm\Argon\Argon
extends Illuminate\Support\Carbon

Extends

Class Description
Illuminate\Support\Carbon

Properties

protected static $createFromFormatFunction : string | callable | null

Function to call instead of createFromFormat.

protected static $formatFunction : string | callable | null

Function to call instead of format.

protected static $parseFunction : string | callable | null

Function to call instead of parse.

Methods

public static createFromFormatWithCurrentLocale (string $format, $time = null, $timezone = null) : static | false

Locale-aware instance creation callback.

This will ensure that the current locale is used when creating a new Argon/Carbon object.

Parameters
Property Description
$format
string
$time
mixed
$timezone
mixed
Returns
static | false

public static getLanguageFromLocale (string $locale) : string

Get the language portion of the locale.

Parameters
Property Description
$locale
string
Returns
string

public static parseWithCurrentLocale ($time = null, $timezone = null) : static

Locale-aware parsing callback.

This will ensure that the current locale is used when parsing dates.

Parameters
Property Description
$time
mixed
$timezone
mixed
Returns
static
Copyright © 2024 Winter CMS