#include "ntrtlp.h"
Go to the source code of this file.
Defines | |
#define | WEEKDAY_OF_1601 1 |
#define | SHIFT10000 13 |
#define | SHIFT10000000 23 |
#define | SHIFT86400000 26 |
#define | Convert100nsToMilliseconds(LARGE_INTEGER) |
#define | ConvertMillisecondsTo100ns(MILLISECONDS) |
#define | Convert100nsToSeconds(LARGE_INTEGER) |
#define | ConvertSecondsTo100ns(SECONDS) |
#define | ConvertMillisecondsToDays(LARGE_INTEGER) |
#define | ConvertDaysToMilliseconds(DAYS) |
#define | NumberOfLeapYears(YEARS) |
#define | ElapsedYearsToDays(YEARS) |
#define | IsLeapYear(YEARS) |
#define | MaxDaysInMonth(YEAR, MONTH) |
Functions | |
ULONG | ElapsedDaysToYears (IN ULONG ElapsedDays) |
VOID | TimeToDaysAndFraction (IN PLARGE_INTEGER Time, OUT PULONG ElapsedDays, OUT PULONG Milliseconds) |
VOID | DaysAndFractionToTime (IN ULONG ElapsedDays, IN ULONG Milliseconds, OUT PLARGE_INTEGER Time) |
VOID | RtlTimeToTimeFields (IN PLARGE_INTEGER Time, OUT PTIME_FIELDS TimeFields) |
BOOLEAN | RtlCutoverTimeToSystemTime (PTIME_FIELDS CutoverTime, PLARGE_INTEGER SystemTime, PLARGE_INTEGER CurrentSystemTime, BOOLEAN ThisYear) |
BOOLEAN | RtlTimeFieldsToTime (IN PTIME_FIELDS TimeFields, OUT PLARGE_INTEGER Time) |
VOID | RtlTimeToElapsedTimeFields (IN PLARGE_INTEGER Time, OUT PTIME_FIELDS TimeFields) |
BOOLEAN | RtlTimeToSecondsSince1980 (IN PLARGE_INTEGER Time, OUT PULONG ElapsedSeconds) |
VOID | RtlSecondsSince1980ToTime (IN ULONG ElapsedSeconds, OUT PLARGE_INTEGER Time) |
BOOLEAN | RtlTimeToSecondsSince1970 (IN PLARGE_INTEGER Time, OUT PULONG ElapsedSeconds) |
VOID | RtlSecondsSince1970ToTime (IN ULONG ElapsedSeconds, OUT PLARGE_INTEGER Time) |
NTSTATUS | RtlSystemTimeToLocalTime (IN PLARGE_INTEGER SystemTime, OUT PLARGE_INTEGER LocalTime) |
NTSTATUS | RtlLocalTimeToSystemTime (IN PLARGE_INTEGER LocalTime, OUT PLARGE_INTEGER SystemTime) |
Variables | |
CONST UCHAR | LeapYearDayToMonth [366] |
CONST UCHAR | NormalYearDayToMonth [365] |
CONST CSHORT | LeapYearDaysPrecedingMonth [13] |
CONST CSHORT | NormalYearDaysPrecedingMonth [13] |
const LARGE_INTEGER | SecondsToStartOf1970 = {0xb6109100, 0x00000002} |
const LARGE_INTEGER | SecondsToStartOf1980 = {0xc8df3700, 0x00000002} |
const LARGE_INTEGER | Magic10000 = {0xe219652c, 0xd1b71758} |
const LARGE_INTEGER | Magic10000000 = {0xe57a42bd, 0xd6bf94d5} |
const LARGE_INTEGER | Magic86400000 = {0xfa67b90e, 0xc6d750eb} |
|
Value:
|
|
Value:
|
|
Value:
Definition at line 198 of file time.c. Referenced by DaysAndFractionToTime(), and TimeToDaysAndFraction(). |
|
Value:
|
|
Value:
|
|
Value:
|
|
Value:
|
|
Value: |
|
Value:
|
|
Value:
|
|
|
|
|
|
|
|
|
|
Definition at line 443 of file time.c. References ConvertDaysToMilliseconds, ConvertMillisecondsTo100ns, and Time. Referenced by RtlTimeFieldsToTime().
|
|
Definition at line 208 of file time.c.
|
|
Definition at line 655 of file time.c. References FALSE, RtlTimeFieldsToTime(), RtlTimeToTimeFields(), and TRUE.
|
|
Definition at line 1306 of file time.c. References NT_SUCCESS, NTSTATUS(), NULL, and Status.
|
|
Definition at line 1223 of file time.c. References ConvertSecondsTo100ns, SecondsToStartOf1970, and Time. Referenced by main().
|
|
Definition at line 1098 of file time.c. References ConvertSecondsTo100ns, SecondsToStartOf1980, and Time. Referenced by main().
|
|
Definition at line 1278 of file time.c. References NT_SUCCESS, NTSTATUS(), NULL, and Status.
|
|
Definition at line 822 of file time.c. References DaysAndFractionToTime(), ElapsedYearsToDays, FALSE, IsLeapYear, LeapYearDaysPrecedingMonth, MaxDaysInMonth, NormalYearDaysPrecedingMonth, Time, TimeFields, and TRUE. Referenced by main(), RtlCutoverTimeToSystemTime(), SeMakeAnonymousLogonToken(), SeMakeSystemToken(), TestTokenInitialize(), and UdfConvertUdfTimeToNtTime().
|
|
Definition at line 937 of file time.c. References Time, TimeFields, and TimeToDaysAndFraction().
|
|
Definition at line 1154 of file time.c. References Convert100nsToSeconds, FALSE, SecondsToStartOf1970, Time, and TRUE. Referenced by main().
|
|
Definition at line 1029 of file time.c. References Convert100nsToSeconds, FALSE, SecondsToStartOf1980, Time, and TRUE. Referenced by main().
|
|
Definition at line 508 of file time.c. References ElapsedDaysToYears, ElapsedYearsToDays, IsLeapYear, LeapYearDaysPrecedingMonth, LeapYearDayToMonth, NormalYearDaysPrecedingMonth, NormalYearDayToMonth, Time, TimeFields, TimeToDaysAndFraction(), and WEEKDAY_OF_1601. Referenced by ExGetNextWakeTime(), IopCopyBootLogRegistryToFile(), KeSetSystemTime(), main(), MiInitializeSpecialPoolCriteria(), and RtlCutoverTimeToSystemTime().
|
|
Definition at line 361 of file time.c. References Convert100nsToMilliseconds, ConvertDaysToMilliseconds, ConvertMillisecondsToDays, and Time. Referenced by RtlTimeToElapsedTimeFields(), and RtlTimeToTimeFields().
|
|
Initial value:
Definition at line 98 of file time.c. Referenced by RtlTimeFieldsToTime(), and RtlTimeToTimeFields(). |
|
Initial value:
Definition at line 62 of file time.c. Referenced by RtlTimeToTimeFields(). |
|
|
|
|
|
|
|
Initial value:
Definition at line 113 of file time.c. Referenced by RtlTimeFieldsToTime(), and RtlTimeToTimeFields(). |
|
Initial value:
Definition at line 76 of file time.c. Referenced by RtlTimeToTimeFields(). |
|
Definition at line 149 of file time.c. Referenced by RtlSecondsSince1970ToTime(), and RtlTimeToSecondsSince1970(). |
|
Definition at line 151 of file time.c. Referenced by RtlSecondsSince1980ToTime(), and RtlTimeToSecondsSince1980(). |