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