|
Time\Duration::fromMicrosecondsCreates a duration from a number of microseconds Description
public static Time\Duration Time\Duration::fromMicroseconds(int
$microseconds)
Creates a non-negative duration of Parameters
Return ValuesReturns a new Time\Duration object. Errors/Exceptions
ExamplesExample #1 Time\Duration::fromMicroseconds example The above example will output:
object(Time\Duration)#1 (3) {
["seconds"]=>
int(1)
["nanoseconds"]=>
int(500000000)
["negative"]=>
bool(false)
}
See Also
|