Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 248 Bytes

MA0114.md

File metadata and controls

9 lines (6 loc) · 248 Bytes

MA0114 - Use DateTimeOffset.UnixEpoch

Use System.DateTimeOffset.UnixEpoch instead of re-implementing the logic.

_ = new DateTimeOffset(1970, 1, 1, 0, 0, 0, TimeSpan.Zero); // report diagnostic

_ = DateTimeOffset.UnixEpoch; // ok