问题
I have question about the current system time. I have software based on command line. When I run that software, it shows me the time at both the start and end of execution. ie
- Start:
The current system time is: 1378258559 - End:
The current system time is : 1378258570
I do not know if the time is in seconds or minutes. How is the 1378258559 is calculated? The difference between the two numbers is 11.
FYI, the current date and time on my system is: 04/09/2013 9:50 AM
回答1:
This website has a calculator:
It is the number of seconds since January 1st, 1970 at midnight GMT.
The 11, is because something took 11 seconds.
Here's a post explaining why 1970 was chosen along with the definition:
- Unix time, or POSIX time, is a system for describing points in time, defined as the number of seconds elapsed since midnight proleptic Coordinated Universal Time (UTC) of January 1, 1970, not counting leap seconds.
Why are dates calculated from January 1st, 1970?
来源:https://stackoverflow.com/questions/18604246/system-time-is-10-digit-how