PeriodType

final class PeriodType(period: Period) extends AnyVal

Provides extension methods to java.time.Period

class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def *(n: Int): Period

Gets duration after multiplication.

Gets duration after multiplication.

Value Params
n

number by which period is multiplied

def +(amount: Period): Period

Gets period with specified amount added.

Gets period with specified amount added.

Value Params
amount

period to add

def -(amount: Period): Period

Gets period with specified amount subtracted.

Gets period with specified amount subtracted.

Value Params
amount

period to subtract

def unary_-: Period

Gets negated period.

Gets negated period.