Warning

 

Close
Confirm Action

Are you sure you wish to do this?

Cancel Confirm
AR15.COM
12/15/2013 5:25:58 PM EDT
So my galaxy S3 was running slow and I decided to load a new rom (hyperdrive).  Took a backup in recovery just in case something went wrong or I didn't like it.  I got everything set up, then I realized I never backed up the logs that I use to track my fuel mileage/fillups.  I use a program called GasLog.  No big deal I figured, I could just load my backup, export the data, go to new rom, import it and be good to go.  Well apparently my backup wasn't complete for some reason.  FUCK!  There is over a year of data!  I know, my fault, but now Im trying to get it back.  I managed to dig up a .db file from the folder and when I open it in an SQLite reader, I can see all my entries.  It has my odometer, cost, date, etc.  Basically ALL the data I need, but it won't import correctly as a backup.  I can retype the data but the issue I have, and where I need help is the date string.  I expected a format I could understand (MMDDYYYY, MMDDYYYYHHMMSS, etc), but this looks almost like a random number.  Its a 13 character string.  Is there anyone who may be able to help?

Here are a couple examples;  I know the corresponding date to the string for a couple recent ones, but I can't make any sense of it.

1385583240000 corresponds to a fillup I did on 11/27/13
1386245340000 corresponds to a fillup I did on 12/5/13

12/15/2013 5:41:02 PM EDT
[#1]
Its probably stored in milliseconds since epoch.  Jan 1 1970.

12/15/2013 5:45:45 PM EDT
[#2]
Looks like epoch time

Here's an example using perl and DateTime:


> map {; $_->mdy .' '.$_->hms } map {; DateTime->from_epoch(epoch => $_) } (1385583240, 1386245340)
$res[12] = [
 '11-27-2013 20:14:00',
 '12-05-2013 12:09:00'
]

View Quote
12/15/2013 5:45:50 PM EDT
[#3]
Just google "milliseconds to date" and you'll find lots of code examples and scripts even for excel.
12/15/2013 5:48:10 PM EDT
[#4]
Quote History
Quoted:
Its probably stored in milliseconds since epoch.  Jan 1 1970.

View Quote


FUCK YES!!!!!!! thats it!!!  Thank you!!!!

ARFCOM FTW!
12/15/2013 5:49:26 PM EDT
[#5]
Quote History
Quoted:


FUCK YES!!!!!!! thats it!!!  Thank you!!!!

ARFCOM FTW!
View Quote View All Quotes
View All Quotes
Quote History
Quoted:
Quoted:
Its probably stored in milliseconds since epoch.  Jan 1 1970.



FUCK YES!!!!!!! thats it!!!  Thank you!!!!

ARFCOM FTW!


yep, UNIX timestamp.

http://en.wikipedia.org/wiki/Unix_time