Метод |
Описание |
|
addInterval ( string $interval, string $format = self::DEFAULT_TIME_FORMAT ) : string |
Adds interval to current time and returns a formatted date. |
|
beginningOfDay ( string $date ) : string |
Returns the beginning of a day for the given date. |
|
endOfDay ( string $date ) : string |
Returns end of a day for the given date. |
|
formatDate ( string $date, string $format = 'Y-m-d' ) : null | string |
Returns formatted date. |
|
formatDateTime ( string $date, string $format = self::DEFAULT_TIME_FORMAT ) : null | string |
Returns formatted date time. |
|
formatTime ( string $time, string $format = 'H:i' ) : null | string |
Returns formatted time. |
|
formatTimestamp ( integer $timestamp, string $format = self::DEFAULT_TIME_FORMAT, string $timezone = self::DEFAULT_TIMEZONE ) : string |
Returns formatted Unix timestamp. |
|
modify ( string $dateAsString, string $interval, string $format = self::DEFAULT_TIME_FORMAT ) : string |
Modifies the given date string and returns a formatted date. |
|
modifyNow ( string $interval, string $format = self::DEFAULT_TIME_FORMAT ) : string |
Modifies the current time and returns a formatted date. |
|