C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
DOS Time/Date Formats
                                             Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The file time and the date are stored individually, using unsigned
     integers as bit fields. File time and date are packed as follows:
 
                                   Time
 
       F   E   D   C   B   A   9   8   7   6   5   4   3   2   1   0
     ├───┬───┬───┬───┬───┬───┬───┬───┼───┬───┬───┬───┬───┬───┬───┬───┤
     │       hours       │        minutes        │      seconds      │
     └───────────────────────────┴───────────────┴───────────────────┘
 
     hours   = 0-23
     minutes = 0-59
     seconds = 0-29 in two-second intervals
 
                                   Date
 
       F   E   D   C   B   A   9   8   7   6   5   4   3   2   1   0
 
     ├───┬───┬───┬───┬───┬───┬───┬───┼───┬───┬───┬───┬───┬───┬───┬───┤
     │            year           │     month     │        day        │
     └───────────────────────────┴───────────────┴───────────────────┘
 
     year  = 0-119 (relative to 1980)
     month = 1-12
     day   = 1-31
                                    -♦-