|
DateTime::setMicrosecondSets microsecond part of the time Description
public static DateTime::setMicrosecond(int
$microsecond)Sets microsecond part of the time. Like DateTimeImmutable::setMicrosecond but works with DateTime. Parameters
Return ValuesReturns the modified DateTime object for method chaining. Errors/Exceptions
If the ExamplesExample #1 DateTime::setMicrosecond example The above example will output: 1970-01-01 00:02:03.456789 1970-01-01 00:02:03.987654 See Also
|