views:

224

answers:

2

I been working on parsing out bookmarks from an export file generated by google bookmarks. This file contains the following date attributes:

ADD_DATE="1231721701079000"

ADD_DATE="1227217588219000"

These are not standard unix style timestamps. Can someone point me in the right direction here? I'll be parsing them using c# if you are feeling like really helping me out.

+1  A: 

Initially looking at it, it almost looks like if you chopped off the last 6 digits you'd get a reasonable Unix Date using the online converter

1231721701 = Mon, 12 Jan 2009 00:55:01 GMT

1227217588 = Thu, 20 Nov 2008 21:46:28 GMT

The extra 6 digits could be formatting related or some kind of extended attributes.

There is some sample code for the conversion of Unix Timestamps if that is in fact what it is.

Rob Haupt
Schwern was correct, but I gave you a vote for the link which is the code I was using for converting unix timestamps.
Mike Glenn
yes, I agree. I didn't account for the milliseconds
Rob Haupt
+1  A: 

1231721701079000 looks suspiciously like time since Jan 1st, 1970 in milliseconds.

perl -wle 'print scalar gmtime(1231721701079000/1_000_000)'
Mon Jan 12 00:55:01 2009

I'd make some bookmarks at known times and try it out to confirm.

Schwern