-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathTimestampTest.sol
49 lines (41 loc) · 974 Bytes
/
TimestampTest.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
import { timestamp } from '../utils/time/Timestamp.sol';
contract TimestampTest {
function eq(
timestamp t0,
timestamp t1
) external pure returns (bool status) {
status = t0 == t1;
}
function notEq(
timestamp t0,
timestamp t1
) external pure returns (bool status) {
status = t0 != t1;
}
function gt(
timestamp t0,
timestamp t1
) external pure returns (bool status) {
status = t0 > t1;
}
function lt(
timestamp t0,
timestamp t1
) external pure returns (bool status) {
status = t0 < t1;
}
function gte(
timestamp t0,
timestamp t1
) external pure returns (bool status) {
status = t0 >= t1;
}
function lte(
timestamp t0,
timestamp t1
) external pure returns (bool status) {
status = t0 <= t1;
}
}