Expand Minimize

RtlTimeFieldsToTime routine

The RtlTimeFieldsToTime routine converts TIME_FIELDS information to a system time value.

Syntax


BOOLEAN RtlTimeFieldsToTime(
  _In_  PTIME_FIELDS   TimeFields,
  _Out_ PLARGE_INTEGER Time
);

Parameters

TimeFields [in]

Pointer to the following structure, containing the time information to be converted:


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

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).

Time [out]

Pointer to a buffer, which is to contain the converted system time value as a large integer.

Return value

RtlTimeFieldsToTime returns TRUE if the input TimeFields data was successfully converted.

Remarks

RtlTimeFieldsToTime ignores the Weekday value in TimeFields.

Callers of RtlTimeFieldsToTime can be running at any IRQL if both input buffers are resident.

Requirements

Target platform

Universal

Version

Available starting with Windows 2000.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

Any level (See Remarks section)

See also

ExLocalTimeToSystemTime
ExSystemTimeToLocalTime
KeQuerySystemTime
RtlTimeToTimeFields

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft