| 689 | } // namespace NDateTimeHelpers |
| 690 | |
| 691 | constexpr TDuration operator-(const TInstant& l, const TInstant& r) noexcept { |
| 692 | return TDuration::FromValue(::NDateTimeHelpers::DiffWithSaturation(l.GetValue(), r.GetValue())); |
| 693 | } |
| 694 | |
| 695 | constexpr TInstant operator+(const TInstant& i, const TDuration& d) noexcept { |
| 696 | return TInstant::FromValue(::NDateTimeHelpers::SumWithSaturation(i.GetValue(), d.GetValue())); |
nothing calls this directly
no test coverage detected