MLKDateTimeGranularity
enum MLKDateTimeGranularity {}
@enum DateTimeGranularity The precision of a timestamp that was extracted from text.
For example, “tomorrow” has the granularity .day
, while “12:51” has the granularity .minute
.
-
The granularity of the
DateTimeEntity
is unknown.Declaration
Objective-C
MLKDateTimeGranularityUnknown = 0
-
The
DateTimeEntity
is precise to a specific year.Declaration
Objective-C
MLKDateTimeGranularityYear
-
The
DateTimeEntity
is precise to a specific month.Declaration
Objective-C
MLKDateTimeGranularityMonth
-
The
DateTimeEntity
is precise to a specific week.Declaration
Objective-C
MLKDateTimeGranularityWeek
-
The
DateTimeEntity
is precise to a specific day.Declaration
Objective-C
MLKDateTimeGranularityDay
-
The
DateTimeEntity
is precise to a specific hour.Declaration
Objective-C
MLKDateTimeGranularityHour
-
The
DateTimeEntity
is precise to a specific minute.Declaration
Objective-C
MLKDateTimeGranularityMinute
-
The
DateTimeEntity
is precise to a specific second.Declaration
Objective-C
MLKDateTimeGranularitySecond