node-cooper - v0.2.0
    Preparing search index...

    A date and wall-clock time with no zone or offset -- CASC.md §6.6's local datetime (1979-05-27T07:32:00). Mirrors Elixir's NaiveDateTime, at microsecond resolution.

    An offset datetime (1979-05-27T07:32:00Z) is a real instant and loads as a DateTime instead -- see the README's value table.

    The closest native fit is a Date read in the process's local time zone: toDate() / LocalDateTime.fromDate() (both use local calendar fields, the same as new Date(y, m, d, h, mi, s) does). Sub-millisecond digits don't survive the trip, since Date has none.

    Index
    • Parameters

      • year: number
      • month: number

        1-based

      • day: number
      • hour: number
      • minute: number
      • second: number
      • Optionalmicrosecond: number = 0
      • Optionalprecision: number = ...

        fractional digits to display, 0..6

      Returns LocalDateTime

    day: number
    hour: number
    microsecond: number
    minute: number
    month: number
    precision: number
    second: number
    year: number
    • The reference's equality, which -key = [...] removes by: the same datetime written to the same precision (07:32:00.5 is not 07:32:00.500, as an Elixir NaiveDateTime with a different microsecond precision is not). It once ignored the precision, and -key removed entries the reference keeps.

      Parameters

      • other: unknown

      Returns boolean