Hi..
> Hello, I've been working on mapping out the FAT table. No reason to do
> this rather than find it in a book but I wanted to test out my HEX
> editor. Can anyone tell me how to decode the date field. I think it is
There are no dates stored in the FAT.
> at either offset 24d or 25d from the beginning of the file's entry but I
> can't make any sense out of it. Any help would be appreciated
The FAT is not itself a file!!
I think you mean a file's directory entry..??? The date of a file is stored
at offsets 24 & 25 in the file's directory entry.
Ok here's how the date is stored:
bits 0-7 are stored in byte 24, whilst bits 8-15 are stored in byte 25.
bits 9-15 are the year, less 1980 (ie 1980 = 0, 1981=1 etc).
bits 5-8 are the month, 1-12
bits 0-4 are the day, 1-31
Craig
--- FMail/386 1.20+
---------------
* Origin: Communications Barrier BBS (03) 9585 1112, 24hrs (3:632/533)
|