PHP Class GBDateTime, gitblog

Afficher le fichier Open project: rsms/gitblog Class Usage Examples

Méthodes publiques

Свойство Type Description
$offset
$time

Méthodes publiques

Méthode Description
__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' )

Method Details

__construct() public méthode

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

__set_state() static public méthode

static public __set_state ( $state )

__sleep() public méthode

public __sleep ( )

__toString() public méthode

public __toString ( )

__wakeup() public méthode

public __wakeup ( )

age() public méthode

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

condensed() public méthode

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

format() public méthode

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

formatTimezoneOffset() static public méthode

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

localTimezoneOffset() static public méthode

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

mergeString() public méthode

public mergeString ( $s, $adjustTimezone = false )

origformat() public méthode

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

reintrepretTimezone() public méthode

public reintrepretTimezone ( $tzoffset )

utcformat() public méthode

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

Property Details

$offset public_oe property

public $offset

$time public_oe property

public $time