TimeZoneHelper
in package
TimeZone helper
Table of Contents
Properties
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')))
$zone
TimeZone by default
public
static string
$zone
= 'ru'
Methods
FTimeU()
Formats a string based on the zone
public
static FTimeU(string $format, float $microtime) : string
Parameters
- $format : string
- $microtime : float
Return values
stringMonth()
Returns month name by month number
public
static Month(int $month) : string
Parameters
- $month : int
Return values
stringMonth2()
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
stringSet()
Set timezone globaly
public
static Set(string $zone) : bool
Parameters
- $zone : string
Return values
boolWeekday()
Returns the name of the week in the current localization
public
static Weekday(int $weekday) : string
Parameters
- $weekday : int