#ifndef _NTRTL_H
NTSYSAPI
BOOLEAN
NTAPI
RtlTimeToSecondsSince1980(
_In_ PLARGE_INTEGER Time,
_Out_ PULONG ElapsedSeconds
);
View code on GitHub// ntifs.h
NTSYSAPI BOOLEAN RtlTimeToSecondsSince1980(
[in] PLARGE_INTEGER Time,
[out] PULONG ElapsedSeconds
);
View the official Windows Driver Kit DDI referenceThis function is documented in Windows Driver Kit.
The RtlTimeToSecondsSince1980 routine converts a given absolute system time value to the elapsed time, in seconds, since the beginning of 1980.
Time [in]Pointer to a variable that specifies the system time value to be converted. The approximate valid range for this variable begins at 1980 and ends around 2115.
ElapsedSeconds [out]Pointer to a caller-allocated variable that receives the corresponding number of seconds since midnight, December 31, 1979.
RtlTimeToSecondsSince1980 returns TRUE if the input Time falls within a range that it can accurately convert to ElapsedSeconds.
The absolute system time is a LARGE_INTEGER value, accurate to 100-nanosecond resolution, assuming an accurate hardware clock. The basis for system time is the start of 1601. The value that is processed by RtlTimeToSecondsSince1980 is truncated to one-millisecond resolution.
For more information about converting time values, see Data Conversions.