PHP 클래스 GBDateTime, gitblog

파일 보기 프로젝트 열기: rsms/gitblog 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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