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
= "createFromFormatWithCurrentLocale"
Function to call instead of createFromFormat.
protected
static
$formatFunction
:
string
|
callable
|
null
= "translatedFormat"
Function to call instead of format.
protected
static
$parseFunction
:
string
|
callable
|
null
= "parseWithCurrentLocale"
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 | Type | Description |
---|---|---|
$format | string |
string
|
$time | mixed |
mixed
|
$timezone | mixed |
mixed
|
Returns
static | false
public static getLanguageFromLocale (string $locale) : string
Get the language portion of the locale.
Parameters
Property | Type | Description |
---|---|---|
$locale | string |
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 | Type | Description |
---|---|---|
$time | mixed |
mixed
|
$timezone | mixed |
mixed
|
Returns
static
← Previous page
System\console\asset\vite\ViteList
Next page →
Winter\Storm\Argon\ArgonServiceProvider
Copyright © 2024 Winter CMS