| 418 | } |
| 419 | |
| 420 | bool IsoSqlFormatParser::Iso8601WeekBasedDateParseResult::ExtractYearMonthDay( |
| 421 | DateTimeParseResult* result) const { |
| 422 | DCHECK(result != nullptr); |
| 423 | DCHECK(IsSet()); |
| 424 | DateValue dv = DateValue::CreateFromIso8601WeekBasedDateVals(year, week_of_year, |
| 425 | day_of_week); |
| 426 | return dv.ToYearMonthDay(&result->year, &result->month, &result->day); |
| 427 | } |
| 428 | |
| 429 | } |
| 430 | } |
no test coverage detected