final class Duration (View source)

Methods

static Duration
fromSecondsAndNanoseconds(int $seconds, int $nanoseconds)

No description

int
seconds()

No description

int
nanoseconds()

No description

float
asFloat()

No description

string
asString()

No description

bool
equals(Duration $other)

No description

bool
isLessThan(Duration $other)

No description

bool
isGreaterThan(Duration $other)

No description

Details

static Duration fromSecondsAndNanoseconds(int $seconds, int $nanoseconds)

No description

Parameters

int $seconds
int $nanoseconds

Return Value

Duration

Exceptions

InvalidArgumentException

int seconds()

No description

Return Value

int

int nanoseconds()

No description

Return Value

int

float asFloat()

No description

Return Value

float

string asString()

No description

Return Value

string

bool equals(Duration $other)

No description

Parameters

Duration $other

Return Value

bool

bool isLessThan(Duration $other)

No description

Parameters

Duration $other

Return Value

bool

bool isGreaterThan(Duration $other)

No description

Parameters

Duration $other

Return Value

bool