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
// wdm.h

typedef struct _TIME_FIELDS {
  CSHORT Year;
  CSHORT Month;
  CSHORT Day;
  CSHORT Hour;
  CSHORT Minute;
  CSHORT Second;
  CSHORT Milliseconds;
  CSHORT Weekday;
} TIME_FIELDS;

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-wdm-time_fields)

Description

Describes time information for time conversion routines.

Members

Year

Specifies a value from 1601 on.

Month

Specifies a value from 1 to 12.

Day

Specifies a value from 1 to 31.

Hour

Specifies a value from 0 to 23.

Minute

Specifies a value from 0 to 59.

Second

Specifies a value from 0 to 59.

Milliseconds

Specifies a value from 0 to 999.

Weekday

Specifies a value from 0 to 6 (Sunday to Saturday).

Remarks

See also

RtlTimeFieldsToTime

RtlTimeToTimeFields


NTinternals.net (undocumented.ntinternals.net)

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