Time/Date

Windows Installer

Time/Date

The Time/Date data type has the time and the date stored individually, using unsigned integers as bit fields, packed as follows.

Time

Time is encoded in an unsigned 2-byte integer with the following bit fields.

Contents Bits Value range
hours 0 1 2 3 4 0–23
minutes 5 6 7 8 9 A 0–59
2-second intervals B C D E F 0–29

 

Date

Date is encoded in an unsigned 2-byte integer with the following bit fields.

Contents Bits Value range
year 0 1 2 3 4 5 6 0–119 (relative to 1980)
month 7 8 9 A 1–12
day B C D E F 1–31

 



Send comments about this topic to Microsoft

Build date: 8/13/2009

© 2009 Microsoft Corporation. All rights reserved.