#ifndef _NTRTL_H
// Time
typedef struct _TIME_FIELDS
{
CSHORT Year; // 1601...
CSHORT Month; // 1..12
CSHORT Day; // 1..31
CSHORT Hour; // 0..23
CSHORT Minute; // 0..59
CSHORT Second; // 0..59
CSHORT Milliseconds; // 0..999
CSHORT Weekday; // 0..6 = Sunday..Saturday
} TIME_FIELDS, *PTIME_FIELDS;
View code on GitHub
This structure is documented in Windows Driver Kit.
TIME_FIELDS
structure is NTDLL version of Win 32 API SYSTEM_TIME. It contains detailed information about date and time.
Year, in range 1601 - 65535.
Month, in range 1 - 12.
Day, in range 1 - 31, depending on Month
member.
Hour, in range 0 - 23.
Minute, in range 0 - 59.
Second, in range 0 - 59.
Milliseconds, in range 0 - 1000.
Day of week, in range 0 - 6, where 0 means "Sunday", 1 means "Monday" etc.