| Hit | Total | Coverage | |
|---|---|---|---|
| Lines | 5 | 5 | 100.0% |
| Functions | 0 | 0 | - |
| Branches | 0 | 0 | - |
| Line | Branch | Hits | Source code |
|---|---|---|---|
| 1 | 33 | final _latestUPDEpoch = DateTime.utc(2020, 02, 02); // universal palindrome date |
|
| 2 | |
||
| 3 | 11 | int microsecTimeStamp([DateTime? time]) => |
|
| 4 | 55 | (time ?? DateTime.now()).toUtc().difference(_latestUPDEpoch).inMicroseconds; |
|
| 5 | |
||
| 6 | 10 | DateTime? fromMicrosecTimeStamp(int? microsecs) => (microsecs == null) |
|
| 7 | ? null |
||
| 8 | 30 | : _latestUPDEpoch.add(Duration(microseconds: microsecs)); |