IBM Support

Converting number of seconds since 1/1/1970

Technote (troubleshooting)


Problem(Abstract)

How can I convert a value of number of seconds since 1/1/1970 into a real date?

Resolving the problem

The trick to this is to use the value and add it to the January 1, 1970 date.

Using the QnA tool, you can find this information, as in the following relevance questions:

Q: value "InstallDate" of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" of registry as string A: 1103661594

Q: "01 Jan 1970 00:00:00 -0000" as time + (value "InstallDate" of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" of registry as integer) * second A: Tue, 21 Dec 2004 12:39:54 -0800

Note: for more information regarding the use of the QnA utilty, please see the following knowledge base article:
http://www-01.ibm.com/support/docview.wss?uid=swg21505945

Historical Number

316

Document information

More support for: IBM BigFix family

Software version: All Versions

Operating system(s): Platform Independent

Reference #: 1505949

Modified date: 22 September 2015


Translate this page: