Last active
August 29, 2015 14:21
-
-
Save solidnerd/e0c976c8e68c491a7b01 to your computer and use it in GitHub Desktop.
Helps to get the actual Time for Java.Date(long ...)
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
class Program { | |
static void Main(string[] args) { | |
DateTime Jan1st1970 = new DateTime(1970,1,1,0,0,0); | |
long diff = (long) (DateTime.Now.ToLocalTime() - Jan1st1970).TotalMilliseconds; | |
Console.WriteLine(diff); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment