|
DateTimeImmutable::setMicrosecondSets microsecond part of the time Description
#[\NoDiscard(message: "as DateTimeImmutable::setMicrosecond() does not modify the object itself")]
public static DateTimeImmutable::setMicrosecond(int
$microsecond)Returns a new DateTimeImmutable object constructed from the old one, with modified microsecond part. Parameters
Return ValuesReturns a new DateTimeImmutable object with the modified data. Errors/Exceptions
If the ExamplesExample #1 DateTimeImmutable::setMicrosecond example The above example will output: 1970-01-01 00:02:03.456789 1970-01-01 00:02:03.987654 See Also
|