DATE_TIME_SET
Sets the time
SYNTAX
date_time_set ( DateTime $object , int $hour , int $minute [, int $second = 0 [, int $microsecond = 0 ]] ) : DateTime
PARAMETERS
object
A DateTime object returned by date_create(). The function modifies this object.
hour
Hour of the time.
minute
Minute of the time.
second
Second of the time.
microsecond
Microsecond of the time.
RETURN
Returns the DateTime object for method chaining or FALSE on failure.
EXAMPLES
OBJECT HOUR MINUTE
2001-02-03 04:05:00.000000
SECOND
2001-02-03 04:05:06.000000
MICROSECOND
2001-02-03 04:05:06.000007
RETURN
2001-02-03 04:05:06.000007