Skip to content

Instantly share code, notes, and snippets.

@DataGreed
Created March 10, 2019 15:05
Show Gist options
  • Select an option

  • Save DataGreed/8bfb7f2957f3103773b3b32ecdf3bcf7 to your computer and use it in GitHub Desktop.

Select an option

Save DataGreed/8bfb7f2957f3103773b3b32ecdf3bcf7 to your computer and use it in GitHub Desktop.
C# Time since the beginning of Epoch
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