| 102 | } |
| 103 | |
| 104 | inline TimestampValue TimestampValue::FromDaysSinceUnixEpoch(int64_t days) { |
| 105 | static const boost::gregorian::date EPOCH(1970, 1, 1); |
| 106 | static const boost::posix_time::time_duration t(0, 0, 0); |
| 107 | return TimestampValue(EPOCH + boost::gregorian::date_duration(days), t); |
| 108 | } |
| 109 | |
| 110 | inline int64_t TimestampValue::DaysSinceUnixEpoch() const { |
| 111 | DCHECK(HasDate()); |
nothing calls this directly
no test coverage detected