microsoft / Cognitive-LUIS-Windows

Windows (.Net) SDK for the Microsoft Language Understanding Intelligent Service API, part of Congitive Services
www.microsoft.com/cognitive-services/en-us/language-understanding-intelligent-service-luis
Other
134 stars 78 forks source link

Guidance on parsing the resolution of the builtin.datetime.duration entity #27

Closed brendanarnold closed 6 years ago

brendanarnold commented 7 years ago

I get an entity of type builtin.datetime.duration returned corresponding to 'last week'. This is resolved to 'P1W' which I assume means 'past one week' however I don't know for sure and I can't seem to find docs detailing what other values are possible.

Is there existing code to parse this into usable .NET DateTime objects? Or a guide on how to interpret the returned strings?

tellarin commented 6 years ago

DateTimeV2 includes resolutions. @stevengum97, can we close this issue?