Chrono - v2.8.3
    Preparing search index...

    Interface ParsedComponents

    A collection of parsed date/time components (e.g. day, hour, minute, ..., etc).

    Each parsed component has three different levels of certainty.

    • Certain (or Known): The component is directly mentioned and parsed.
    • Implied: The component is not directly mentioned, but implied by other parsed information.
    • Unknown: Completely no mention of the component.
    interface ParsedComponents {
        date(): Date;
        get(component: Component): number;
        isCertain(component: Component): boolean;
        tags(): Set<string>;
    }

    Implemented by

    Index

    Methods

    • Returns Date

      a javascript date object.

    • Get the component value for either Certain or Implied value.

      Parameters

      Returns number

    • Check the component certainly if the component is Certain (or Known)

      Parameters

      Returns boolean

    • Returns Set<string>

      debugging tags of the parsed component.