If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Unix time stamp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-24-04, 19:46
Bernard88 Bernard88 is offline
Registered User
 
Join Date: Apr 2004
Posts: 8
Exclamation Unix time stamp

Unix time stamp (a method of the showing date) is a umber of seconds from 1st of january 1970 to the present time.
How can it be done in Excel?
I mean in which way it should be converted from the figure (time stamp) to the date:hour format?
Any formula or something like that?
Thx for any help
Reply With Quote
  #2 (permalink)  
Old 05-25-04, 03:16
namliam namliam is offline
Registered User
 
Join Date: Jan 2004
Location: The Netherlands
Posts: 421
#01-01-1970# + UnixTimeStamp / 60 / 60 / 24

/ 60 => To minutes
/ 60 => To hours
/ 24 => Days

that should work....

Regards
Reply With Quote
  #3 (permalink)  
Old 05-25-04, 14:41
Bernard88 Bernard88 is offline
Registered User
 
Join Date: Apr 2004
Posts: 8
Great thanx for the answer namliam

I think the problem is a bit deeper as every 4 years, the year is longer-366 days instead of 365
So a formula should be more complicated unfortunately.
Anyway-thanx again for your time.
Reply With Quote
  #4 (permalink)  
Old 05-26-04, 02:07
namliam namliam is offline
Registered User
 
Join Date: Jan 2004
Location: The Netherlands
Posts: 421
No it should NOT! try it you will find it works ... this is because a date actually is a double, thus if unix counts seconds for a leap year it will count 60*60*24*366 seconds, where Excel will count just the 366 days.

Regards
Reply With Quote
  #5 (permalink)  
Old 05-26-04, 16:13
Bernard88 Bernard88 is offline
Registered User
 
Join Date: Apr 2004
Posts: 8
Wow-great thanx
One big reuest-can you say what exactly it needs to be put in the cell (how above formula gotta be written)?
I'm sorry-I am not too good in Excell
For example-let's say, my UnixTimeStamp value is in the cell B1
it should be
=B1 / 60 / 60 / 24 + what?

You are great-thx again for your time
Reply With Quote
  #6 (permalink)  
Old 05-27-04, 11:13
SR22Mike SR22Mike is offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA, Earth
Posts: 65
Try...

Try...

=B1 /60/60/24 + DATE(1970,1,1)

I think this should work regardless if your system is using the 1900 Date System (Excel Default set-up) or the optional 1904 Date System.

-Mike
Reply With Quote
  #7 (permalink)  
Old 05-28-04, 02:33
namliam namliam is offline
Registered User
 
Join Date: Jan 2004
Location: The Netherlands
Posts: 421
I KNOW it works... on every date system, tho you may have to change 1-1-1970 to 31-12-1969 depending on the exact setup of the timestamp...
Reply With Quote
  #8 (permalink)  
Old 05-28-04, 14:05
Bernard88 Bernard88 is offline
Registered User
 
Join Date: Apr 2004
Posts: 8
It works like a charm.
Great thanx for your help guys.
It covers my axx at work
Thx again
Reply With Quote
  #9 (permalink)  
Old 06-01-04, 12:50
SR22Mike SR22Mike is offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA, Earth
Posts: 65
Credit to namliam

Props to namliam for his knowledge. I was just around to add a DATE formula.
Reply With Quote
  #10 (permalink)  
Old 06-04-04, 02:02
namliam namliam is offline
Registered User
 
Join Date: Jan 2004
Location: The Netherlands
Posts: 421
Now if only someone would help me , but my problems seem to stump everyone...

Regards
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On