| 408 | } |
| 409 | |
| 410 | int IsoSqlFormatParser::GetIso8601WeekNumberingYear(const TimestampValue* now) { |
| 411 | DCHECK(now != nullptr); |
| 412 | DCHECK(now->HasDate()); |
| 413 | |
| 414 | static const boost::gregorian::date EPOCH(1970, 1, 1); |
| 415 | DateValue dv = DateValue((now->date() - EPOCH).days()); |
| 416 | DCHECK(dv.IsValid()); |
| 417 | return dv.Iso8601WeekNumberingYear(); |
| 418 | } |
| 419 | |
| 420 | bool IsoSqlFormatParser::Iso8601WeekBasedDateParseResult::ExtractYearMonthDay( |
| 421 | DateTimeParseResult* result) const { |
nothing calls this directly
no test coverage detected