Метод |
Описание |
|
add ( string $amount ) |
Adds an amount of days, months, years, hours, minutes and seconds to a DateTimeObject. |
|
offsetToTimezone ( string | DateTimeZone $timezone ) |
Offsets the date object from current timezone to defined $timezone. |
|
setDate ( integer $year, integer $month, integer $day ) |
Set the date on current object. |
|
setTime ( integer $hour, integer $minute, integer $second ) |
Set the time on current object. |
|
setTimestamp ( integer $timestamp ) |
Set the timestamp on current object. |
|
sub ( string $amount ) |
Subtracts an amount of days, months, years, hours, minutes and seconds from current DateTimeObject. |
|