Options
All
  • Public
  • Public/Protected
  • All
Menu

This class provides a Period (length + TimeUnit) class and implements a limited algebra.

test self-consistency of algebra is checked.

Hierarchy

  • Period

Index

Constructors

constructor

  • Returns Period

Properties

Private _length

_length: Integer = 0

Private _units

_units: TimeUnit

Methods

add

  • Parameters

    Returns Period

adda

  • Parameters

    Returns void

div

  • Parameters

    Returns Period

diva

  • Parameters

    Returns Period

frequency

  • Returns Frequency

init1

init2

  • Parameters

    Returns Period

length

  • Returns Integer

normalize

  • normalize(): void
  • Returns void

sub

  • Parameters

    Returns Period

suba

  • Parameters

    Returns void

toString

  • toString(): string
  • Returns string

units

  • Returns TimeUnit

valueOf

  • Returns Integer

Static days

  • Parameters

    Returns Real

Static daysMinMax

Static equal

  • Parameters

    Returns boolean

Static greaterOrEqual

  • Parameters

    Returns boolean

Static greaterThan

  • Parameters

    Returns boolean

Static lessOrEqual

  • Parameters

    Returns boolean

Static lessThan

  • Parameters

    Returns boolean

Static months

  • Parameters

    Returns Real

Static mulScalar

Static notEqual

  • Parameters

    Returns boolean

Static weeks

  • Parameters

    Returns Real

Static years

  • Parameters

    Returns Real