• Home
  • Raw
  • Download

Lines Matching refs:DatetimeComponent

53   bool ApplyRelationField(const DatetimeComponent& relative_date_time_component,
68 bool AdjustByRelation(DatetimeComponent date_time_component, int distance,
73 std::vector<DatetimeComponent> components; in HasOnlyTimeComponents()
76 for (const DatetimeComponent& component : components) { in HasOnlyTimeComponents()
77 if (!(component.component_type == DatetimeComponent::ComponentType::HOUR || in HasOnlyTimeComponents()
79 DatetimeComponent::ComponentType::MINUTE || in HasOnlyTimeComponents()
81 DatetimeComponent::ComponentType::SECOND || in HasOnlyTimeComponents()
83 DatetimeComponent::ComponentType::MERIDIEM)) { in HasOnlyTimeComponents()
104 if (parse_data.HasFieldType(DatetimeComponent::ComponentType::ZONE_OFFSET)) { in InterpretParseData()
106 parse_data.GetFieldValue(DatetimeComponent::ComponentType::ZONE_OFFSET, in InterpretParseData()
111 if (parse_data.HasFieldType(DatetimeComponent::ComponentType::DST_OFFSET)) { in InterpretParseData()
113 if (parse_data.GetFieldValue(DatetimeComponent::ComponentType::DST_OFFSET, in InterpretParseData()
118 std::vector<DatetimeComponent> relative_components; in InterpretParseData()
122 const DatetimeComponent& relative_component = relative_components.back(); in InterpretParseData()
133 if (parse_data.HasAbsoluteValue(DatetimeComponent::ComponentType::YEAR)) { in InterpretParseData()
135 parse_data.GetFieldValue(DatetimeComponent::ComponentType::YEAR, &year); in InterpretParseData()
138 if (parse_data.HasAbsoluteValue(DatetimeComponent::ComponentType::MONTH)) { in InterpretParseData()
140 parse_data.GetFieldValue(DatetimeComponent::ComponentType::MONTH, &month); in InterpretParseData()
147 DatetimeComponent::ComponentType::DAY_OF_MONTH)) { in InterpretParseData()
149 parse_data.GetFieldValue(DatetimeComponent::ComponentType::DAY_OF_MONTH, in InterpretParseData()
153 if (parse_data.HasAbsoluteValue(DatetimeComponent::ComponentType::HOUR)) { in InterpretParseData()
155 parse_data.GetFieldValue(DatetimeComponent::ComponentType::HOUR, &hour); in InterpretParseData()
156 if (parse_data.HasFieldType(DatetimeComponent::ComponentType::MERIDIEM)) { in InterpretParseData()
158 parse_data.GetFieldValue(DatetimeComponent::ComponentType::MERIDIEM, in InterpretParseData()
173 if (parse_data.HasAbsoluteValue(DatetimeComponent::ComponentType::MINUTE)) { in InterpretParseData()
175 parse_data.GetFieldValue(DatetimeComponent::ComponentType::MINUTE, &minute); in InterpretParseData()
178 if (parse_data.HasAbsoluteValue(DatetimeComponent::ComponentType::SECOND)) { in InterpretParseData()
180 parse_data.GetFieldValue(DatetimeComponent::ComponentType::SECOND, &second); in InterpretParseData()
200 const DatetimeComponent& relative_date_time_component, in ApplyRelationField()
203 case DatetimeComponent::RelativeQualifier::UNSPECIFIED: in ApplyRelationField()
206 case DatetimeComponent::RelativeQualifier::NEXT: in ApplyRelationField()
211 case DatetimeComponent::RelativeQualifier::THIS: in ApplyRelationField()
216 case DatetimeComponent::RelativeQualifier::LAST: in ApplyRelationField()
221 case DatetimeComponent::RelativeQualifier::NOW: in ApplyRelationField()
223 case DatetimeComponent::RelativeQualifier::TOMORROW: in ApplyRelationField()
226 case DatetimeComponent::RelativeQualifier::YESTERDAY: in ApplyRelationField()
229 case DatetimeComponent::RelativeQualifier::PAST: in ApplyRelationField()
235 case DatetimeComponent::RelativeQualifier::FUTURE: in ApplyRelationField()
287 DatetimeComponent date_time_component, int distance, bool allow_today, in AdjustByRelation()
291 case DatetimeComponent::ComponentType::DAY_OF_WEEK: in AdjustByRelation()
307 case DatetimeComponent::ComponentType::SECOND: in AdjustByRelation()
310 case DatetimeComponent::ComponentType::MINUTE: in AdjustByRelation()
313 case DatetimeComponent::ComponentType::HOUR: in AdjustByRelation()
316 case DatetimeComponent::ComponentType::DAY_OF_MONTH: in AdjustByRelation()
319 case DatetimeComponent::ComponentType::WEEK: in AdjustByRelation()
323 case DatetimeComponent::ComponentType::MONTH: in AdjustByRelation()
327 case DatetimeComponent::ComponentType::YEAR: in AdjustByRelation()