Results 1 to 15 of 15

Thread: Another Tech support question (excel conversion from EPOCH )

  1. #1

    Another Tech support question (excel conversion from EPOCH )

    Since tech support is so great on this outdoor blog, I figured I would ask mine. I have 98,137 quality control recording files from the Department of Revenue. I need to archive them on a different drive but make them accesible if needed rarely on the different server. So all the files are in mp3 format. I just need to make a master index so they know what file is associated with what timestamp. The problem is the timestamp on the DB is in EPOCH time and the output they look at from the software is in "human dates". So I need to convert from the EPOCH time stamp (or unix timestamp) into normal time. I found a website that will do 500 at a time but that would take me forever. www.epochconverter.com

    I was thinking I could export the list into an excel spreadsheet and then input a conversion formula, but have had no luck finding one. I can output my query to a text file only with this application but it can run SQL queries. The "actiondate" is the field in question. I will attach a small text file of my query and data. Does anyone know a way to do this or have a better idea? Maybe I'm going about this the wrong way? Maybe there is a way to even do this an SQL query? Some days I wish I was a DBA :P
    Attached Files Attached Files

  2. # ADS
    Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many
     

  3. #2

    Re: Another Tech support question (excel conversion from EPO

    Quote Originally Posted by deathcricket
    I found a website that will do 500 at a time but that would take me forever.
    then i suggest you get started right away.
    But if I agreed with you, we would both be wrong.

  4. #3
    That thought had occurred to me.



  5. #4
    Well, although I know nothing about EPOCH time, I do know quite a bit about Excel.

    I'm looking at that site you mentioned, and I think I'm gathering that the EPOCH time of "1226536153" converts to "Thu, 13 Nov 2008 00:29:13 +0000"

    ...although it's only Wednesday, so maybe this is just a simple timezone dealio.

    But anyways, I'm trying to break it down. The whole "leap year" thing throws a wrench into it as well but....

    It may take a few columns of Excel formulas, but we may be able to do it. Maybe first of all, start by your year. Divide your base EPOCH number by 31556926 seconds, which is 1 year.

    Then in the next column, take that remainder, and divide by 2629743 for the number of months

    Then 604800 for the weeks (but you probably wouldn't need the week, so make up with it in days)

    Then 86400 for the day.

    Take your result, and add on to January 1, 1970, apparently the beginning.

    With the autofill function, you're just breaking down that first formula, and the rest is a double click away.

    Then it depends on how specific you need to be.... time of day? And Excel only has 66k rows, so you'd have to do this on a couple of spreadsheets.

    I realize this could possibly be way off, since I don't know EPOCH, but if it's just a matter of a single "seconds" conversion, this should do the trick.

  6. #5
    Either way Beech, I was impressed by the time you put into that one.


    Sorry, DeathCricket. I don't know anything about this one.

  7. #6
    Quote Originally Posted by Sombeech
    Well, although I know nothing about EPOCH time, I do know quite a bit about Excel.

    I'm looking at that site you mentioned, and I think I'm gathering that the EPOCH time of "1226536153" converts to "Thu, 13 Nov 2008 00:29:13 +0000"

    ...although it's only Wednesday, so maybe this is just a simple timezone dealio.

    But anyways, I'm trying to break it down. The whole "leap year" thing throws a wrench into it as well but....

    It may take a few columns of Excel formulas, but we may be able to do it. Maybe first of all, start by your year. Divide your base EPOCH number by 31556926 seconds, which is 1 year.

    Then in the next column, take that remainder, and divide by 2629743 for the number of months

    Then 604800 for the weeks (but you probably wouldn't need the week, so make up with it in days)

    Then 86400 for the day.

    Take your result, and add on to January 1, 1970, apparently the beginning.

    With the autofill function, you're just breaking down that first formula, and the rest is a double click away.

    Then it depends on how specific you need to be.... time of day? And Excel only has 66k rows, so you'd have to do this on a couple of spreadsheets.

    I realize this could possibly be way off, since I don't know EPOCH, but if it's just a matter of a single "seconds" conversion, this should do the trick.
    Oh thanks man, I appreciate the effort even if this doesn't work. I will test it tomorrow. I actually do need it down to the second since they receive over 5000 calls an hour (almost 2 calls a second), but I do know that EPOCH time is actually the number of seconds that have occurred since Jan 1st, 1970 or some universally agreed upon time point. So it should ignore all leap years. But then when I add the seconds back on, I would not take those into account... Well it will be a simple thing to test. I'll just use one and then see if the universal conversion matches. thanks again!

    Oh and don't worry about the time discrepancy. I'm sure one of the reporting servers has the wrong time on it. As long as the record matches whatever was originally reported, it will be fine. Just need to be able to locate the record is my only concern.


  8. #7

    Re: Another Tech support question (excel conversion from EPO

    Quote Originally Posted by deathcricket
    Since tech support is so great on this outdoor blog, I figured I would ask mine. I have 98,137 quality control recording files from the Department of Revenue
    I was able to write a program in MATLAB that converted your text file to the same string output as the www.epochconverter.com. I have no idea what SQL query means. If you have access to MATLAB I can send you the code. If you don
    Attached Files Attached Files

  9. #8

  10. #9
    Wow James! Was that a joke!?! Did you really figure this out? I am impressed by what other people can do.

  11. #10
    Zions the "s" is silent trackrunner's Avatar
    Join Date
    Nov 2007
    Location
    indoors wanting to be outdoors
    Posts
    3,216

    Re: Another Tech support question (excel conversion from EPO

    Quote Originally Posted by deathcricket
    I can output my query to a text file only with this application but it can run SQL queries. Maybe there is a way to even do this an SQL query?
    Select *


    [/thread] (you'll need to know SQL to get this)


    other query's that might be helpful

    SELECT *
    FROM users
    WHERE Clue >0
    0 Rows retunred

    SELECT Girl
    FROM Pub
    WHERE Single = 1
    AND Desperate = 1
    AND Will_sleep_with_me >= 1

    http://shop.cafepress.com/sql

  12. #11

    Re: Another Tech support question (excel conversion from EPO

    Quote Originally Posted by trackrunner
    SELECT Girl
    FROM Pub
    WHERE Single = 1
    AND Desperate = 1
    AND Will_sleep_with_me >= 1
    **There are (0) matches for your search.**

  13. #12

    Re: Another Tech support question (excel conversion from EPO

    [quote=James_B_Wads2000]
    Quote Originally Posted by deathcricket
    Since tech support is so great on this outdoor blog, I figured I would ask mine. I have 98,137 quality control recording files from the Department of Revenue
    I was able to write a program in MATLAB that converted your text file to the same string output as the www.epochconverter.com. I have no idea what SQL query means. If you have access to MATLAB I can send you the code. If you don

  14. #13
    I had a dream last night and I woke up wit an idea on how to do it in Excel.

    Like 'Beech said you are limited to 65,536 rows in '03. But in office '07 you have 131,072 rows.



    James
    Attached Files Attached Files

  15. #14
    You're a genius man.

    I'll let you have your own dreams tonight, thanks again.

  16. #15
    Zions the "s" is silent trackrunner's Avatar
    Join Date
    Nov 2007
    Location
    indoors wanting to be outdoors
    Posts
    3,216

    Re: Another Tech support question (excel conversion from EPO

    Quote Originally Posted by Sombeech
    Quote Originally Posted by trackrunner
    SELECT Girl
    FROM Pub
    WHERE Single = 1
    AND Desperate = 1
    AND Will_sleep_with_me >= 1
    **There are (0) matches for your search.**
    Not what I got. Sorry you didn't have luck on your part.
    Attached Images Attached Images  

Similar Threads

  1. My Tech Support Rant - web development
    By Sombeech in forum General Discussion
    Replies: 12
    Last Post: 08-02-2010, 08:21 PM
  2. Dilbert Makes a Call to Tech Support
    By accadacca in forum Tech Forum
    Replies: 1
    Last Post: 12-14-2009, 09:39 AM
  3. Remote Tech Support
    By Sombeech in forum Tech Forum
    Replies: 2
    Last Post: 06-23-2009, 11:11 AM
  4. Tech Support
    By Sombeech in forum Jokes
    Replies: 0
    Last Post: 12-04-2007, 09:56 PM
  5. Tech Support Job?
    By Alex in forum General Discussion
    Replies: 12
    Last Post: 08-04-2007, 06:37 PM

Visitors found this page by searching for:

Outdoor Forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •