Home
last modified time | relevance | path

Searched refs:absolute_datetime (Results 1 – 3 of 3) sorted by relevance

/external/libtextclassifier/native/annotator/datetime/
Ddatetime-grounder.cc58 bool IsValidDatetime(const AbsoluteDateTime* absolute_datetime) { in IsValidDatetime() argument
60 if (absolute_datetime->minute() > 59 || absolute_datetime->second() > 59 || in IsValidDatetime()
61 absolute_datetime->hour() > 23 || absolute_datetime->month() > 12 || in IsValidDatetime()
62 absolute_datetime->month() == 0) { in IsValidDatetime()
65 if (absolute_datetime->day() >= 0) { in IsValidDatetime()
68 if (absolute_datetime->month() >= 0 && absolute_datetime->month() <= 12) { in IsValidDatetime()
69 max_day_value = kMonthDefaultLastDayMap.at(absolute_datetime->month()); in IsValidDatetime()
70 if (absolute_datetime->day() < min_day_value || in IsValidDatetime()
71 absolute_datetime->day() > max_day_value) { in IsValidDatetime()
144 const grammar::datetime::AbsoluteDateTime* absolute_datetime, in FillAbsoluteDateTimeComponents() argument
[all …]
Ddatetime-grounder_test.cc51 ungrounded_datetime.absolute_datetime.reset(new AbsoluteDateTimeT); in BuildAbsoluteDatetime()
54 ungrounded_datetime.absolute_datetime->year = year; in BuildAbsoluteDatetime()
55 ungrounded_datetime.absolute_datetime->month = month; in BuildAbsoluteDatetime()
56 ungrounded_datetime.absolute_datetime->day = day; in BuildAbsoluteDatetime()
57 ungrounded_datetime.absolute_datetime->hour = hour; in BuildAbsoluteDatetime()
58 ungrounded_datetime.absolute_datetime->minute = minute; in BuildAbsoluteDatetime()
59 ungrounded_datetime.absolute_datetime->second = second; in BuildAbsoluteDatetime()
60 ungrounded_datetime.absolute_datetime->meridiem = meridiem; in BuildAbsoluteDatetime()
202 ungrounded_datetime.absolute_datetime.reset(new AbsoluteDateTimeT); in TEST_F()
203 ungrounded_datetime.absolute_datetime->time_zone.reset(new TimeZoneT); in TEST_F()
[all …]
Ddatetime.fbs144 absolute_datetime:AbsoluteDateTime;