\Hubleto\Framework\Interfaces\LocaleInterface
Methods
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 |