RtlGetSystemTimeAndBias - NtDoc

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

NTSYSAPI
KSYSTEM_TIME
NTAPI
RtlGetSystemTimeAndBias(
    _Out_ KSYSTEM_TIME TimeZoneBias,
    _Out_opt_ PLARGE_INTEGER TimeZoneBiasEffectiveStart,
    _Out_opt_ PLARGE_INTEGER TimeZoneBiasEffectiveEnd
    );

#endif
#endif

View code on GitHub

NtDoc

This function atomically retrieves the current system time as well as the time-zone bias in effect at that exact point in time and that is necessary to compute the local time.

The function also optionally returns the dates when the daylight saving time starts and ends in the current region.