Created
March 10, 2019 15:05
-
-
Save DataGreed/8bfb7f2957f3103773b3b32ecdf3bcf7 to your computer and use it in GitHub Desktop.
C# Time since the beginning of Epoch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int epoch = (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment