alordash / date-parser

Extracts date from natural message.

Home Page:https://www.npmjs.com/package/@alordash/date-parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Period times logic rework

alordash opened this issue · comments

Time periodicity information should be contained as array of objects.

  • Each object provides information about time type and a how much this time type should be increased when event should fire.
  • Objects are arranged in a hierarchical order. Less index -> higher hierarchy. When least periodic time object reaches it's maximum, it resets and triggers higher object in hierarchy.