RtlTimeFieldsToTime

BOOLEAN
RtlTimeFieldsToTime(

IN PTIME_FIELDS TimeFields,
IN PLARGE_INTEGER Time
);

RtlTimeFieldsToTime converts TIME_FIELDS information to a system time value.

Parameters

TimeFields

Points 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;

Members

Year

Is in the range from 1601 on.

Month

Is in the range from 1 to 12.

Day

Is in the range from 1 to 31.

Hour

Is in the range from 0 to 23.

Minute

Is in the range from 0 to 59.

Second

Is in the range from 0 to 59.

Milliseconds

Is in the range from 0 to 999.

Weekday

Is in the range from 0 to 6 (Sunday to Saturday).

Time

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

Comments

RtlTimeFieldsToTime ignores the Weekday value in TimeFields.

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

See Also

ExLocalTimeToSystemTime, ExSystemTimeToLocalTime, KeQuerySystemTime, RtlTimeToTimeFields