| 104 | } |
| 105 | |
| 106 | ABSL_ATTRIBUTE_NOINLINE |
| 107 | void FastLocalTimeConverter::convert_fallback(time_t time_point, |
| 108 | struct ::tm& local) noexcept { |
| 109 | auto time = ::absl::FromTimeT(time_point); |
| 110 | auto ci = _zone.At(time); |
| 111 | local.tm_sec = ci.cs.second(); |
| 112 | local.tm_min = ci.cs.minute(); |
| 113 | local.tm_hour = ci.cs.hour(); |
| 114 | local.tm_mday = ci.cs.day(); |
| 115 | local.tm_mon = ci.cs.month() - 1; |
| 116 | local.tm_year = ci.cs.year() - 1900; |
| 117 | local.tm_wday = to_weekday(ci.cs); |
| 118 | local.tm_yday = ::absl::GetYearDay(::absl::CivilDay(ci.cs)) - 1; |
| 119 | local.tm_isdst = ci.is_dst; |
| 120 | local.tm_gmtoff = ci.offset; |
| 121 | local.tm_zone = ci.zone_abbr; |
| 122 | } |
| 123 | |
| 124 | ABSL_ATTRIBUTE_NOINLINE |
| 125 | void FastLocalTimeConverter::move_range(time_t time_point) noexcept { |
nothing calls this directly
no outgoing calls
no test coverage detected