Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Chrono

The Chrono object.

Hierarchy

  • Chrono

Index

Constructors

constructor

  • new Chrono(configuration?: Configuration): Chrono

Properties

defaultConfig

defaultConfig: default = ...

parsers

parsers: Parser[]

refiners

refiners: Refiner[]

Methods

clone

  • Create a shallow copy of the Chrono object with the same configuration (parsers and refiners)

    Returns Chrono

parse

parseDate

  • A shortcut for calling parse() then transform the result into Javascript's Date object

    Parameters

    Returns Date

    Date object created from the first parse result

Static Private executeParser

  • executeParser(context: ParsingContext, parser: Parser): any[]

Generated using TypeDoc