Skip to content

Latest commit

 

History

History
155 lines (75 loc) · 1.54 KB

Duration.md

File metadata and controls

155 lines (75 loc) · 1.54 KB

Time::Duration

This is the Time::Duration class version 1.0.

Initializer

$duration = Duration()

Creates a new duration given the time components. All components are integers.

  • optional years: Int

  • optional months: Int

  • optional weeks: Int

  • optional days: Int

  • optional hours: Int

  • optional minutes: Int

  • optional seconds: Int

  • optional nanoseconds: Int

Methods

years

$duration.years

Computed property. Years.

months

$duration.months

Computed property. Months.

weeks

$duration.weeks

Computed property. Weeks.

days

$duration.days

Computed property. Days.

hours

$duration.hours

Computed property. Hours.

minutes

$duration.minutes

Computed property. Minutes.

seconds

$duration.seconds

Computed property. Seconds.

nanoseconds

$duration.nanoseconds

Computed property. Nanoseconds.

Addition operator (+)

$duration + ($ehs: Duration)

Add two durations.

Subtraction operator (-)

$duration - ($rhs: Duration)

Subtract a duration from this one.

copy

$duration.copy()

Make a copy of this duration.

End of the Time::Duration class.

This file was generated automatically by the Ferret compiler from Duration.frt.