RtlTimeFieldsToTime function (wdm.h)

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

Syntax

NTSYSAPI BOOLEAN RtlTimeFieldsToTime(
  [in]  PTIME_FIELDS   TimeFields,
  [out] PLARGE_INTEGER Time
);

Parameters

[in] TimeFields

Pointer to a structure of type TIME_FIELDS that contains the time information to be converted.

[out] Time

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

Requirement Value
Minimum supported client Available starting with Windows 2000.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL Any level (See Remarks section)

See also

ExLocalTimeToSystemTime

ExSystemTimeToLocalTime

KeQuerySystemTime

RtlTimeToTimeFields

TIME_FIELDS structure