How to use the @microsoft/recognizers-text-data-types-timex-expression.TimexProperty.fromDate function in @microsoft/recognizers-text-data-types-timex-expression

To help you get started, we’ve selected a few @microsoft/recognizers-text-data-types-timex-expression 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 microsoft / BotBuilder-Samples / samples / javascript_nodejs / 40.timex-resolution / languageGeneration.js View on Github external
module.exports.examples = () => {
    describe(new TimexProperty('2017-05-29'));
    describe(new TimexProperty('XXXX-WXX-6'));
    describe(new TimexProperty('XXXX-WXX-6T16'));
    describe(new TimexProperty('T12'));

    const today = new Date();

    describe(TimexProperty.fromDate(today));

    today.setDate(today.getDate() + 1);

    describe(TimexProperty.fromDate(today));
};