Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Emily
 
Posts: n/a
Default Convert Unix timestamp to Readable Date/time

Are there any Excel functions available to convert Unix time (seconds since
1/1/1970) to a readable date/tiem? Or does anyone know of a calculation I
can do to convert this type of data to a date/time that is more usable?

I can find converters on the web, but I need a function or macros within
excel.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpeltzer
 
Posts: n/a
Default Convert Unix timestamp to Readable Date/time

If your Unix time is in cell A1, then =A1/(24*60*60) + DATE(1970,1,1) should
convert it; you'll have to apply a Date/Time format to the result.
--Bruce
(BTW the division by 24*60*60 is because '1' represents a day in Excel.
Also, I've interpreted your post to mean that Unix time started at 12:00:00am
on 1/1/70).

"Emily" wrote:

Are there any Excel functions available to convert Unix time (seconds since
1/1/1970) to a readable date/tiem? Or does anyone know of a calculation I
can do to convert this type of data to a date/time that is more usable?

I can find converters on the web, but I need a function or macros within
excel.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Harlan Grove
 
Posts: n/a
Default Convert Unix timestamp to Readable Date/time

bpeltzer wrote...
If your Unix time is in cell A1, then =A1/(24*60*60) + DATE(1970,1,1) should
convert it; you'll have to apply a Date/Time format to the result.
--Bruce
(BTW the division by 24*60*60 is because '1' represents a day in Excel.
Also, I've interpreted your post to mean that Unix time started at 12:00:00am
on 1/1/70).


Unix epoch time is supposed to be UTC (GMT), so time zone adjustment
may be needed as well.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Date/Time to the Hour eric_rs1 Excel Discussion (Misc queries) 2 October 3rd 05 04:40 PM
date/time stamp Jan Excel Worksheet Functions 7 July 14th 05 01:04 PM
How can I convert an exported UNIX timestamp in excel? prod sorter Excel Discussion (Misc queries) 5 March 20th 05 11:14 PM
How do i convert a number of seconds to a date/time? Margo Excel Worksheet Functions 2 January 5th 05 01:09 AM
Convert Numeric into Text Monty Excel Worksheet Functions 0 December 18th 04 10:25 PM


All times are GMT +1. The time now is 05:03 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"