TIME_FIELDS - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#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;

#endif

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

Year, in range 1601 - 65535.

Month

Month, in range 1 - 12.

Day

Day, in range 1 - 31, depending on Month member.

Hour

Hour, in range 0 - 23.

Minute

Minute, in range 0 - 59.

Second

Second, in range 0 - 59.

Milliseconds

Milliseconds, in range 0 - 1000.

Weekday

Day of week, in range 0 - 6, where 0 means "Sunday", 1 means "Monday" etc.

Documented by

See also