RtlTimeToSecondsSince1980 - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

NTSYSAPI
BOOLEAN
NTAPI
RtlTimeToSecondsSince1980(
    _In_ PLARGE_INTEGER Time,
    _Out_ PULONG ElapsedSeconds
    );

#endif

View code on GitHub
// ntifs.h

NTSYSAPI BOOLEAN RtlTimeToSecondsSince1980(
  [in]  PLARGE_INTEGER Time,
  [out] PULONG         ElapsedSeconds
);
View the official Windows Driver Kit DDI reference

NtDoc

This function is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (nf-ntifs-rtltimetosecondssince1980)

RtlTimeToSecondsSince1980 function

Description

The RtlTimeToSecondsSince1980 routine converts a given absolute system time value to the elapsed time, in seconds, since the beginning of 1980.

Parameters

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.

Return value

RtlTimeToSecondsSince1980 returns TRUE if the input Time falls within a range that it can accurately convert to ElapsedSeconds.

Remarks

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.

See also

RtlSecondsSince1980ToTime

RtlTimeFieldsToTime

RtlTimeToSecondsSince1970

RtlTimeToTimeFields