BinOp

org.abh80.nf.core.time.TimeFormat.BinOp
implicit class BinOp(self: TimeFormat)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def *(scalar: Long): TimeFormat

Multiplies the time value by a scalar.

Multiplies the time value by a scalar.

Value parameters

scalar

The non-negative scalar value to multiply by

Attributes

Returns

A new TimeFormat instance representing the product

Throws
IllegalArgumentException

if scalar is negative

def +(second: TimeFormat): TimeFormat

Adds two TimeFormat instances.

Adds two TimeFormat instances.

Value parameters

second

The TimeFormat instance to add

Attributes

Returns

A new TimeFormat instance representing the sum

def -(second: TimeFormat): TimeFormat

Subtracts one TimeFormat instance from another.

Subtracts one TimeFormat instance from another.

Value parameters

second

The TimeFormat instance to subtract

Attributes

Returns

A new TimeFormat instance representing the difference

def /(scalar: Long): TimeFormat

Divides the time value by a scalar.

Divides the time value by a scalar.

Value parameters

scalar

The positive scalar value to divide by

Attributes

Returns

A new TimeFormat instance representing the quotient

Throws
IllegalArgumentException

if scalar is not positive