| 150 | } |
| 151 | |
| 152 | inline bool TimestampValue::FloorUtcToUnixTimeMicros(int64_t* unix_time_micros) const { |
| 153 | DCHECK(unix_time_micros != nullptr); |
| 154 | if (UNLIKELY(!HasDateAndTime())) return false; |
| 155 | |
| 156 | *unix_time_micros = DaysSinceUnixEpoch() * SECONDS_PER_DAY * MICROS_PER_SEC |
| 157 | + time_.total_microseconds(); |
| 158 | return true; |
| 159 | } |
| 160 | |
| 161 | inline bool TimestampValue::FloorUtcToUnixTimeMillis(int64_t* unix_time_millis) const { |
| 162 | DCHECK(unix_time_millis != nullptr); |
no outgoing calls