PHP 트레잇 Elgg\TimeUsing

파일 보기 프로젝트 열기: elgg/elgg

공개 메소드들

메소드 설명
getCurrentTime ( string $modifier = '' ) : DateTime Get the (cloned) time. If setCurrentTime() has not been set, this will return a new DateTime().
setCurrentTime ( DateTime $time = null ) : void Set the current time.

메소드 상세

getCurrentTime() 공개 메소드

Get the (cloned) time. If setCurrentTime() has not been set, this will return a new DateTime().
또한 보기: DateTime::modify
public getCurrentTime ( string $modifier = '' ) : DateTime
$modifier string Time modifier
리턴 DateTime

setCurrentTime() 공개 메소드

Set the current time.
public setCurrentTime ( DateTime $time = null ) : void
$time DateTime Current time (empty for now)
리턴 void