PHP Класс GBDateTime, gitblog

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$offset
$time

Открытые методы

Метод Описание
__construct ( $time = null, $offset = null )
__set_state ( $state )
__sleep ( )
__toString ( )
__wakeup ( )
age ( $threshold = null, $yformat = null, $absformat = null, $suffix = null, $compared_to = null, $momentago = null, $prefix = null ) Relative age
condensed ( $ranges = [86400 => '%H:%M', 31536000 => '%b %e'], $compared_to = null )
format ( $format = '%FT%H:%M:%S%z' )
formatTimezoneOffset ( $offset, $format = 'H:i' )
localTimezoneOffset ( ) The offset for timezones west of UTC is always negative, and for those east of UTC is always positive.
mergeString ( $s, $adjustTimezone = false )
origformat ( $format = '%FT%H:%M:%S', $tzformat = 'H:i' )
reintrepretTimezone ( $tzoffset )
utcformat ( $format = '%FT%H:%M:%SZ' )

Описание методов

__construct() публичный Метод

public __construct ( $time = null, $offset = null )

__set_state() статический публичный Метод

static public __set_state ( $state )

__sleep() публичный Метод

public __sleep ( )

__toString() публичный Метод

public __toString ( )

__wakeup() публичный Метод

public __wakeup ( )

age() публичный Метод

Relative age
public age ( $threshold = null, $yformat = null, $absformat = null, $suffix = null, $compared_to = null, $momentago = null, $prefix = null )

condensed() публичный Метод

public condensed ( $ranges = [86400 => '%H:%M', 31536000 => '%b %e'], $compared_to = null )

format() публичный Метод

public format ( $format = '%FT%H:%M:%S%z' )

formatTimezoneOffset() статический публичный Метод

static public formatTimezoneOffset ( $offset, $format = 'H:i' )

localTimezoneOffset() статический публичный Метод

The offset for timezones west of UTC is always negative, and for those east of UTC is always positive.
static public localTimezoneOffset ( )

mergeString() публичный Метод

public mergeString ( $s, $adjustTimezone = false )

origformat() публичный Метод

public origformat ( $format = '%FT%H:%M:%S', $tzformat = 'H:i' )

reintrepretTimezone() публичный Метод

public reintrepretTimezone ( $tzoffset )

utcformat() публичный Метод

public utcformat ( $format = '%FT%H:%M:%SZ' )

Описание свойств

$offset публичное свойство

public $offset

$time публичное свойство

public $time