Reading MySQL DATETIME directly from MYD file -
for corruption recovery issues, have retrieve dates table have .myd file for.
the mysql internals tells me datetime:s stored in 8 bytes:
datetime: 8 bytes: four-byte integer date packed yyyy×10000 + mm×100 + dd , four-byte integer time packed hh×10000 + mm×100 + ss
i have known date of "2010-02-09 19:57:58", in .myd file represented by:
ee 3a d4 f1 47 12 00 00
"2010-02-05 14:24:17" 91 61 96 f1 47 12 00 00
and on.
however cannot find more documentation on how convert these values human readable dates. read somewhere value timestamp number of days since 1900-01-01, cannot find right now.
how parse these values human readable dates?
Comments
Post a Comment