PHP Трейт Elgg\TimeUsing

Показать файл Открыть проект

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

Метод Описание
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