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 read-only
private
int
$hours
$milliseconds read-only
private
int
$milliseconds
$minutes read-only
private
int
$minutes
$nanoseconds read-only
private
float
$nanoseconds
$seconds read-only
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