Module / v2.0.0-beta.13

@typed/fx/RefDateTime

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

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

Constructors

  • make

    function

    Creates a new RefDateTime from a DateTime, Effect, or Fx.

Date arithmetic

  • add

    variable

    Add a Duration to the current state of a RefDateTime.

  • addDuration

    variable

    Add a Duration to the current state of a RefDateTime.

  • subtract

    variable

    Subtract a Duration from the current state of a RefDateTime.

  • subtractDuration

    variable

    Subtract a Duration from the current state of a RefDateTime.

Date formatting

  • epochMillis

    variable

    Get the epoch milliseconds of the current state of a RefDateTime.

  • format

    variable

    Format the current state of a RefDateTime.

State models

  • RefDateTime

    interface

    A RefDateTime is a RefSubject specialized over a DateTime value.

State predicates

  • isAfter

    variable

    Check if the current state of a RefDateTime is after another DateTime.

  • isBefore

    variable

    Check if the current state of a RefDateTime is before another DateTime.

  • isEqual

    variable

    Check if the current state of a RefDateTime equals another DateTime.