powershell generate a timestamp 13 and 10

definition:

  Time stamp refers GMT January 1, 1970 00 hours 00 minutes 00 seconds (Beijing time on January 1, 1970 08 hours 00 minutes 00 seconds) until now the total number of seconds.

  Popular speaking, timestamps are able to represent a complete verifiable data of a data point in a specific time already exist.

   It is proposed mainly to provide users with an electronic evidence to prove that some of the data generation time of the user. --- excerpt from Baidu Encyclopedia

  Ticks is a cycle, storage of a hundred nanoseconds, in terms of seconds, a thousand millionth of a second.

achieve:

(([DateTime]::Now.ToUniversalTime().Ticks - 621355968000000000)/10000000).tostring().Substring(0,10)
(([DateTime]::Now.ToUniversalTime().Ticks - 621355968000000000)/10000).tostring().Substring(0,13)

 

Guess you like

Origin www.cnblogs.com/feiyucha/p/11828648.html