Lines Matching refs:calendar
26 namespace calendar {
45 TCalendar* calendar,
54 TCalendar* calendar) const;
58 TCalendar* calendar) const;
69 bool allow_today, TCalendar* calendar) const;
94 bool prefer_future_for_unspecified_date, TCalendar* calendar, in InterpretParseData() argument
96 TC3_CALENDAR_CHECK(calendar->Initialize(reference_timezone, reference_locale, in InterpretParseData()
108 TC3_CALENDAR_CHECK(calendar->SetZoneOffset(zone_offset * kMillisInMinute)) in InterpretParseData()
115 TC3_CALENDAR_CHECK(calendar->SetDstOffset(dst_offset * kMillisInHour)) in InterpretParseData()
123 TC3_CALENDAR_CHECK(ApplyRelationField(relative_component, calendar)); in InterpretParseData()
128 TC3_CALENDAR_CHECK(calendar->SetHourOfDay(0)) in InterpretParseData()
129 TC3_CALENDAR_CHECK(calendar->SetMinute(0)) in InterpretParseData()
130 TC3_CALENDAR_CHECK(calendar->SetSecond(0)) in InterpretParseData()
131 TC3_CALENDAR_CHECK(calendar->SetMillisecond(0)) in InterpretParseData()
136 TC3_CALENDAR_CHECK(calendar->SetYear(year)) in InterpretParseData()
143 TC3_CALENDAR_CHECK(calendar->SetMonth(month - 1)) in InterpretParseData()
151 TC3_CALENDAR_CHECK(calendar->SetDayOfMonth(day_of_month)) in InterpretParseData()
161 TC3_CALENDAR_CHECK(calendar->SetHourOfDay(hour + 12)) in InterpretParseData()
165 TC3_CALENDAR_CHECK(calendar->SetHourOfDay(0)); in InterpretParseData()
167 TC3_CALENDAR_CHECK(calendar->SetHourOfDay(hour)) in InterpretParseData()
170 TC3_CALENDAR_CHECK(calendar->SetHourOfDay(hour)) in InterpretParseData()
176 TC3_CALENDAR_CHECK(calendar->SetMinute(minute)) in InterpretParseData()
181 TC3_CALENDAR_CHECK(calendar->SetSecond(second)) in InterpretParseData()
184 TC3_CALENDAR_CHECK(RoundToGranularity(*granularity, calendar)) in InterpretParseData()
188 TC3_CALENDAR_CHECK(calendar->GetTimeInMillis(&calendar_millis)) in InterpretParseData()
192 calendar->AddDayOfMonth(1); in InterpretParseData()
201 TCalendar* calendar) const { in ApplyRelationField() argument
209 /*allow_today=*/false, calendar)); in ApplyRelationField()
214 /*allow_today=*/true, calendar)) in ApplyRelationField()
219 /*allow_today=*/false, calendar)) in ApplyRelationField()
224 TC3_CALENDAR_CHECK(calendar->AddDayOfMonth(1)); in ApplyRelationField()
227 TC3_CALENDAR_CHECK(calendar->AddDayOfMonth(-1)); in ApplyRelationField()
233 /*allow_today=*/false, calendar)) in ApplyRelationField()
239 /*allow_today=*/false, calendar)) in ApplyRelationField()
247 DatetimeGranularity granularity, TCalendar* calendar) const { in RoundToGranularity() argument
250 TC3_CALENDAR_CHECK(calendar->GetDayOfWeek(&unused)); in RoundToGranularity()
254 TC3_CALENDAR_CHECK(calendar->SetMonth(0)); in RoundToGranularity()
257 TC3_CALENDAR_CHECK(calendar->SetDayOfMonth(1)); in RoundToGranularity()
260 TC3_CALENDAR_CHECK(calendar->SetHourOfDay(0)); in RoundToGranularity()
263 TC3_CALENDAR_CHECK(calendar->SetMinute(0)); in RoundToGranularity()
266 TC3_CALENDAR_CHECK(calendar->SetSecond(0)); in RoundToGranularity()
271 TC3_CALENDAR_CHECK(calendar->GetFirstDayOfWeek(&first_day_of_week)); in RoundToGranularity()
272 TC3_CALENDAR_CHECK(calendar->SetDayOfWeek(first_day_of_week)); in RoundToGranularity()
273 TC3_CALENDAR_CHECK(calendar->SetHourOfDay(0)); in RoundToGranularity()
274 TC3_CALENDAR_CHECK(calendar->SetMinute(0)); in RoundToGranularity()
275 TC3_CALENDAR_CHECK(calendar->SetSecond(0)); in RoundToGranularity()
288 TCalendar* calendar) const { in AdjustByRelation() argument
294 TC3_CALENDAR_CHECK(calendar->AddDayOfMonth(distance_sign)) in AdjustByRelation()
299 TC3_CALENDAR_CHECK(calendar->GetDayOfWeek(&day_of_week)) in AdjustByRelation()
304 TC3_CALENDAR_CHECK(calendar->AddDayOfMonth(distance_sign)) in AdjustByRelation()
308 TC3_CALENDAR_CHECK(calendar->AddSecond(distance)); in AdjustByRelation()
311 TC3_CALENDAR_CHECK(calendar->AddMinute(distance)); in AdjustByRelation()
314 TC3_CALENDAR_CHECK(calendar->AddHourOfDay(distance)); in AdjustByRelation()
317 TC3_CALENDAR_CHECK(calendar->AddDayOfMonth(distance)); in AdjustByRelation()
320 TC3_CALENDAR_CHECK(calendar->AddDayOfMonth(7 * distance)) in AdjustByRelation()
321 TC3_CALENDAR_CHECK(calendar->SetDayOfWeek(1)) in AdjustByRelation()
324 TC3_CALENDAR_CHECK(calendar->AddMonth(distance)) in AdjustByRelation()
325 TC3_CALENDAR_CHECK(calendar->SetDayOfMonth(1)) in AdjustByRelation()
328 TC3_CALENDAR_CHECK(calendar->AddYear(distance)) in AdjustByRelation()
329 TC3_CALENDAR_CHECK(calendar->SetDayOfYear(1)) in AdjustByRelation()