System Time is 10 Digit , How? [closed]

我的梦境 提交于 2019-12-13 23:18:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!