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

    Function parseDateTime

    • DATETIME token text. With a Z or ±HH:MM offset it denotes a real instant and becomes a DateTime (in UTC, at microsecond resolution, like Elixir's DateTime.from_iso8601/1); without one it becomes a LocalDateTime.

      Parameters

      • text: string

      Returns string | LocalDateTime | DateTime