\Hubleto\Framework\Interfaces\LocaleInterface
Methods
ƒ getTimezones
public getTimezones(): array
ƒ getTimezone
public getTimezone(): string
ƒ getDateShortFormat
public getDateShortFormat(): string
ƒ getDateLongFormat
public getDateLongFormat(): string
ƒ getDatetimeFormat
public getDatetimeFormat(): string
ƒ getTimeFormat
public getTimeFormat(bool $addSeconds = true): string
Parameters
| Parameter |
Type |
Description |
$addSeconds |
bool |
|
ƒ getCurrencySymbol
public getCurrencySymbol(): string
ƒ getCurrencyIsoCode
public getCurrencyIsoCode(): string
ƒ getAll
public getAll(string $keyBy = ""): array
Parameters
| Parameter |
Type |
Description |
$keyBy |
string |
|
ƒ formatCurrency
public formatCurrency(string|float $value, string $symbol = ''): string
Parameters
| Parameter |
Type |
Description |
$value |
string|float |
|
$symbol |
string |
|
ƒ formatDateShort
public formatDateShort(string|int $dateOrTimestamp): string
Parameters
| Parameter |
Type |
Description |
$dateOrTimestamp |
string|int |
|
ƒ formatDateLong
public formatDateLong(string|int $dateOrTimestamp): string
Parameters
| Parameter |
Type |
Description |
$dateOrTimestamp |
string|int |
|
ƒ formatDatetime
public formatDatetime(string|int $datetimeOrTimestamp): string
Parameters
| Parameter |
Type |
Description |
$datetimeOrTimestamp |
string|int |
|
ƒ formatTime
public formatTime(string|int $timeOrTimestamp, bool $addSeconds = true): string
Parameters
| Parameter |
Type |
Description |
$timeOrTimestamp |
string|int |
|
$addSeconds |
bool |
|
www.hubleto.com |
Found a bug or missing something? Report an
issue via GitHub.