#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Unix Time Stamp?

What is forumual to convert a date (example: 8/6/09) to Unix Time Stamp?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Unix Time Stamp?

If your Excel date is in A1, put this in B1:

=(A1-DATE(1970,1,1))*24*60*60

Hope this helps.

Pete

On Aug 28, 6:31*pm, Mish wrote:
What is forumual to convert a date (example: 8/6/09) to Unix Time Stamp?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Unix Time Stamp?

On Fri, 28 Aug 2009 10:31:02 -0700, Mish
wrote:

What is forumual to convert a date (example: 8/6/09) to Unix Time Stamp?


A Unix timestamp is the number of seconds since 1 Jan 1970 00:00:00 UTC

So to convert any particular date to Unix, you could use:

A1: date to be converted (UTC)

=(A1-DATE(1970,1,1))*86400

Format as General.

Of course, if your date input is in local time, and not UTC, you'd have to
add/subtract the difference from UTC to adjust it. So if local time is UTC - 4
hours, then:

=(A1+4/24-DATE(1970,1,1))*86400
--ron
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Unix Time Stamp?

Thanks! Worked Great!
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
How do i convert unix time to Julian time in excel? Ken Excel Discussion (Misc queries) 1 December 14th 06 08:22 PM
Displaying Unix time as date and time [email protected] Excel Discussion (Misc queries) 1 May 30th 06 10:28 PM
Unix Time Function jnorton Excel Worksheet Functions 2 May 24th 05 06:04 PM
Excel Date Time to Unix Time jnorton Excel Discussion (Misc queries) 3 May 24th 05 05:49 PM
Unix Time in Excel Craig Walker Excel Worksheet Functions 2 March 21st 05 06:29 PM


All times are GMT +1. The time now is 12:55 PM.

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

About Us

"It's about Microsoft Excel"