Documentation

TimeZoneHelper
in package

TimeZone helper

Table of Contents

Properties

$texts  : array<string|int, mixed>
Strings
$zone  : string
TimeZone by default

Methods

FTimeU()  : string
Formats a string based on the zone
Month()  : string
Returns month name by month number
Month2()  : string
Returns the name of the month in the current localization in the genitive case.
Set()  : bool
Set timezone globaly
Weekday()  : string
Returns the name of the week in the current localization

Properties

$texts

Strings

public static array<string|int, mixed> $texts = array('ru' => array('months' => array('январь', 'февраль', 'март', 'апрель', 'май', 'июнь', 'июль', 'август', 'сентябрь', 'октябрь', 'ноябрь', 'декабрь'), 'months2' => array('января', 'февраля', 'марта', 'апреля', 'мая', 'июня', 'июля', 'августа', 'сентября', 'октября', 'ноября', 'декабря'), 'weekdays' => array('понедельник', 'вторник', 'среда', 'четверг', 'пятница', 'суббота', 'воскресенье')), 'en' => array('months' => array('january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'dectember'), 'months2' => array('january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'dectember'), 'weekdays' => array('monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday')))

Methods

FTimeU()

Formats a string based on the zone

public static FTimeU(string $format, float $microtime) : string
Parameters
$format : string
$microtime : float
Return values
string

Month()

Returns month name by month number

public static Month(int $month) : string
Parameters
$month : int
Return values
string

Month2()

Returns the name of the month in the current localization in the genitive case.

public static Month2(int $month) : string
Parameters
$month : int
Return values
string

Set()

Set timezone globaly

public static Set(string $zone) : bool
Parameters
$zone : string
Return values
bool

Weekday()

Returns the name of the week in the current localization

public static Weekday(int $weekday) : string
Parameters
$weekday : int
Return values
string

        
On this page

Search results