Results 1 to 3 of 3

Thread: How to convert UTC timestamp value to date and time

  1. #1
    Join Date
    Jan 2012
    Posts
    23

    How to convert UTC timestamp value to date and time

    I have downloaded 5-minute-interval stock data from a data-vendor into CSV format for display and charting in Excel. However, the date and time are in UTC timestamp value (in 10 digits) which is the number of seconds elapsed since 00:00 hours on Jan 1, 1970 UTC. I need to convert them into Excel's date and time format. Would someone help as I could not fiure out how to do it properly with Excel functions. Your help is greatly appreciated.

  2. #2
    Join Date
    Mar 2011
    Posts
    542

    Re: How to convert UTC timestamp value to date and time

    I think it is easier to answer your question if you can have a look to the timestamp built up. The Unix timestamp is calculated yes from the seconds since 01/01/1970 notably based on GMT. Now, if the time schedule on the PC to GMT + /-x is set could be that Excel is mistaken. Can not change the computer but the time setting. In this respect, the formula would also be wrong.

  3. #3
    Join Date
    May 2011
    Posts
    448

    Re: How to convert UTC timestamp value to date and time

    Do you trust it to M $ is not that the leap years are taken into account. A UNIX timestamp is indeed made of seconds, the timer has started on 01/01/1970 at 00:00:00 Clock. Suppose the timestamp is in cell A1, then would the formula (eg in B1) look like this: = DATE (1970, 1, 1) + (A1/24/60/60) or alternatively as follows: = DATE (1970, 1, 1) + (A1/86400). Then the desired date format (eg dd.mm.yyyy) for the cell B1, select and be happy. However, consider that the server (which runs the database) is not very likely, in our time zone (ie GMT or BST) is running, but according to GMT. This is a time shift is from +0 hours (GMT) to user time by +1 hour (GMT = winter time) or +2 hours (CEST = summer time). So you should use the admin to clarify what time zone, the timestamp was stored.

Similar Threads

  1. Replies: 2
    Last Post: 29-11-2011, 09:29 AM
  2. Replies: 8
    Last Post: 19-10-2011, 05:08 AM
  3. How to convert Date and Time Formats in VB.Net
    By Jamaima in forum Software Development
    Replies: 4
    Last Post: 08-07-2010, 06:20 PM
  4. How to convert UNIX timestamp to MySQL
    By Warner in forum Software Development
    Replies: 2
    Last Post: 16-05-2009, 08:20 PM
  5. How to convert MYSQL into Readable PHP timestamp
    By Aanand in forum Software Development
    Replies: 2
    Last Post: 15-05-2009, 11:26 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,886,883.16658 seconds with 17 queries