PHP Class GBDateTime, gitblog

Exibir arquivo Open project: rsms/gitblog Class Usage Examples

Public Properties

Property Type Description
$offset
$time

Public Methods

Method 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 method

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

__set_state() static public method

static public __set_state ( $state )

__sleep() public method

public __sleep ( )

__toString() public method

public __toString ( )

__wakeup() public method

public __wakeup ( )

age() public method

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

condensed() public method

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

format() public method

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

formatTimezoneOffset() static public method

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

localTimezoneOffset() static public method

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

mergeString() public method

public mergeString ( $s, $adjustTimezone = false )

origformat() public method

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

reintrepretTimezone() public method

public reintrepretTimezone ( $tzoffset )

utcformat() public method

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

Property Details

$offset public_oe property

public $offset

$time public_oe property

public $time