Showing posts with label bit-shifting. Show all posts
Showing posts with label bit-shifting. Show all posts

Saturday, 10 March 2012

How do you list a file’s date and time?

A file’s date and time are stored in the find_t structure returned from the _dos_findfirst() and _dos_findnext() functions.

The date and time stamp of the file is stored in the find_t.wr_date and find_t.wr_time structure members. The file date is stored in a two-byte unsigned integer as shown here:

Because DOS stores a file’s seconds in two-second intervals, only the