Module / v2.0.0-beta.13

@typed/fx/RefDuration

14 unique exports available through this public import path, including their members and aliases.

import * as RefDuration from "@typed/fx/RefDuration";

Arithmetic queries

  • add

    variable

    Add a Duration to the current state of a RefDuration.

  • divide

    variable

    Divide the current state of a RefDuration by a number.

  • multiply

    variable

    Multiply the current state of a RefDuration by a number.

  • subtract

    variable

    Subtract a Duration from the current state of a RefDuration.

Constructors

  • make

    function

    Creates a new RefDuration from a Duration, Effect, or Fx.

State models

  • RefDuration

    interface

    A RefDuration is a RefSubject specialized over a Duration value.

State predicates

  • isGreaterThan

    variable

    Check if the current state of a RefDuration is greater than a Duration.

  • isLessThan

    variable

    Check if the current state of a RefDuration is less than a Duration.

  • isZero

    variable

    Check if the current state of a RefDuration is zero.

Unit conversions

  • days

    variable

    Get the days value of the current state of a RefDuration.

  • hours

    variable

    Get the hours value of the current state of a RefDuration.

  • millis

    variable

    Get the milliseconds value of the current state of a RefDuration.

  • minutes

    variable

    Get the minutes value of the current state of a RefDuration.

  • seconds

    variable

    Get the seconds value of the current state of a RefDuration.