| 
 | DateTimeImmutable::setTimeSets the time Description
   #[\NoDiscard]
   public DateTimeImmutable DateTimeImmutable::setTime( int $hour,int $minute,int $second= 0,int $microsecond= 0) Returns a new DateTimeImmutable object with the time set to the given time. Parameters
 Return ValuesReturns a new DateTimeImmutable object with the modified data. Changelog
 ExamplesExample #1 DateTimeImmutable::setTime example Object-oriented style The above examples will output something similar to: 2001-01-01 14:55:00 2001-01-01 14:55:24 Example #2 Values exceeding ranges are added to their parent values The above example will output: 2001-01-01 14:55:24 2001-01-01 14:56:05 2001-01-01 15:05:24 2001-01-02 01:55:24 See Also
 |