| 81 | } |
| 82 | |
| 83 | TInstant ToInstant(TInstant defaultValue) const { |
| 84 | time_t tt = ToTimeT(-1); |
| 85 | if (tt == -1) { |
| 86 | return defaultValue; |
| 87 | } |
| 88 | return TInstant::Seconds(tt) + TDuration::MicroSeconds(MicroSecond); |
| 89 | } |
| 90 | |
| 91 | time_t ToTimeT(time_t defaultValue) const { |
| 92 | if (!IsOk()) { |
no test coverage detected