Duration
in package
FinalYes
Tags
Table of Contents
Properties
- $hours : int
- $milliseconds : int
- $minutes : int
- $nanoseconds : float
- $seconds : int
Methods
- asMicroseconds() : float
- asMilliseconds() : float
- asNanoseconds() : float
- asSeconds() : float
- asString() : string
- fromMicroseconds() : self
- fromNanoseconds() : self
- __construct() : mixed
Properties
$hours
private
int
$hours
$milliseconds
private
int
$milliseconds
$minutes
private
int
$minutes
$nanoseconds
private
float
$nanoseconds
$seconds
private
int
$seconds
Methods
asMicroseconds()
public
asMicroseconds() : float
Return values
floatasMilliseconds()
public
asMilliseconds() : float
Return values
floatasNanoseconds()
public
asNanoseconds() : float
Return values
floatasSeconds()
public
asSeconds() : float
Return values
floatasString()
public
asString() : string
Return values
stringfromMicroseconds()
public
static fromMicroseconds(float $microseconds) : self
Parameters
- $microseconds : float
Return values
selffromNanoseconds()
public
static fromNanoseconds(float $nanoseconds) : self
Parameters
- $nanoseconds : float
Return values
self__construct()
private
__construct(float $nanoseconds) : mixed
Parameters
- $nanoseconds : float