Share via


StrictEntityToType.Interpret Method

Definition

Interpret a parsed DateTimeResolution to provide a series of DateTime ranges

public static System.Collections.Generic.IEnumerable<Microsoft.Bot.Builder.Internals.Fibers.Range<DateTime>> Interpret (Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution resolution, DateTime now, System.Globalization.Calendar calendar, System.Globalization.CalendarWeekRule rule, DayOfWeek firstDayOfWeek, Func<Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DayPart,int> HourFor);
static member Interpret : Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution * DateTime * System.Globalization.Calendar * System.Globalization.CalendarWeekRule * DayOfWeek * Func<Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DayPart, int> -> seq<Microsoft.Bot.Builder.Internals.Fibers.Range<DateTime>>
Public Shared Iterator Function Interpret (resolution As BuiltIn.DateTime.DateTimeResolution, now As DateTime, calendar As Calendar, rule As CalendarWeekRule, firstDayOfWeek As DayOfWeek, HourFor As Func(Of BuiltIn.DateTime.DayPart, Integer)) As IEnumerable(Of Range(Of DateTime))

Parameters

resolution
BuiltIn.DateTime.DateTimeResolution

The DateTimeResolution parsed from a LUIS response.

now
DateTime

The reference point of "now".

calendar
Calendar

The calendar to use for date math.

rule
CalendarWeekRule

The calendar week rule to use for date math.

firstDayOfWeek
DayOfWeek

The first day of the week to use for date math.

HourFor
Func<BuiltIn.DateTime.DayPart,Int32>

The hour that corresponds to the BuiltIn.DateTime.DayPart enumeration.

Returns

A potentially infinite series of DateTime ranges.

Applies to