diff --git a/contracts/DateTimeUtils.sol b/contracts/DateTimeUtils.sol index cebae5e..c989922 100644 --- a/contracts/DateTimeUtils.sol +++ b/contracts/DateTimeUtils.sol @@ -44,6 +44,7 @@ using { } for Months global; using { _timestampLess as <, + _timestampGreater as >, _timestampEqual as ==, _timestampNotEqual as != } for Timestamp global; @@ -71,6 +72,10 @@ function _timestampLess(Timestamp left, Timestamp right) pure returns (bool resu return Timestamp.unwrap(left) < Timestamp.unwrap(right); } +function _timestampGreater(Timestamp left, Timestamp right) pure returns (bool result) { + return Timestamp.unwrap(left) > Timestamp.unwrap(right); +} + function _timestampEqual(Timestamp left, Timestamp right) pure returns (bool result) { return Timestamp.unwrap(left) == Timestamp.unwrap(right); }