Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UNIX decimal to timestamp 1

Status
Not open for further replies.
hi,

UNIX time is relative to 1/1/1970: then number of elapsed seconds since that date/time.

So just convert seconds to DAYS, the units for Date/Time in Microsoft application, and then format to display the date/time format that you want.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
A starting point:
vbats=DateAdd("yyyy",70,1+unixts/86400)

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
:) Just what I want :)

But way does this command shows: 2012-10-17 18:18:08 and not 2012-10-17 20:18:08

2 hours diff ?
 
time zone difference?

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top