How to use the chrono-node.en_GB function in chrono-node

To help you get started, we’ve selected a few chrono-node examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shalvah / RemindMeOfThisTweet / src / timeparser.js View on Github external
text: match[0],
        index: match.index,
        start: {
            hour: dateMoment.hour(),
            minute: dateMoment.minute(),
            second: dateMoment.second(),
            day: dateMoment.date(),
            month: dateMoment.month() + 1,
            year: dateMoment.year(),
        }
    });
};



const parser = chrono.en_GB;
parser.parsers.push(hrsMinsParser);
parser.refiners.push(rollOverYearRefiner);
parser.refiners.push(rollOverDayRefiner);
parser.refiners.push(combineDateAndTime);

module.exports = parser;

chrono-node

A natural language date parser in Javascript

MIT
Latest version published 2 months ago

Package Health Score

83 / 100
Full package analysis

Similar packages