botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

c# - Chronic.Parser

Open dendle opened this issue 10 years ago • 3 comments

Hello All,

I'm using C#, and building a LuisDialog. Luis is passing me the builtin date & time entities, but I need them to be translated into real dates and times.

Looking at the example in the docs for the alarmbot, http://docs.botframework.com/sdkreference/csharp/dialogs.html#alarmBot

var parser = new Chronic.Parser();

Google tells me that Chronic is a ruby framework, at which point I regurgitated some of my tea. (only joking)

I cant find this in the bot builder SDK, or in the Luis namespace - what am I missing? Should I brush up my ruby skills?

Cheers for any help in advance, Kind Regards, Matt

dendle avatar Apr 06 '16 20:04 dendle

Oh - is it nChronic? nChronic

dendle avatar Apr 06 '16 20:04 dendle

Yes, its nChronic

dendle avatar Apr 06 '16 20:04 dendle

Its 'chrono', so try using chrono.parseDate( xyz); . i hope it works now. :+1:

rahul251993 avatar Aug 25 '16 15:08 rahul251993