32-Bit Windows Time/Date Formats

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at 32-Bit Windows Time-Date Formats.

The file time and the date are stored individually, using unsigned integers as bit fields. File time and date are packed as follows:

Time

Bit position:0 1 2 3 45 6 7 8 9 AB C D E F
Length:565
Contents:hoursminutes2-second increments
Value Range:0–230–590–29 in 2-second intervals

Date

Bit position:0 1 2 3 4 5 67 8 9 AB C D E F
Length:745
Contents:yearmonthday
Value Range:0–1191–121–31
(relative to 1980)

Global Constants

Show: