#define DAYSPERLEAPYEAR 366
#define MONSPERYEAR 12
-#define TICKSTO1970 0x019db1ded53e8000
-#define TICKSTO1980 0x01a8e79fe1d58000
+#define TICKSTO1970 0x019db1ded53e8000LL
+#define TICKSTO1980 0x01a8e79fe1d58000LL
static const int YearLengths[2] = {DAYSPERNORMALYEAR, DAYSPERLEAPYEAR};
static const int MonthLengths[2][MONSPERYEAR] =
/* FUNCTIONS *****************************************************************/
+/*
+ * @unimplemented
+ */
VOID
STDCALL
RtlTimeToTimeFields(
}
+/*
+ * @unimplemented
+ */
BOOLEAN
STDCALL
RtlTimeFieldsToTime(
}
+/*
+ * @implemented
+ */
VOID
STDCALL
RtlSecondsSince1970ToTime(
ULONG SecondsSince1970,
PLARGE_INTEGER Time)
{
- LONGLONG llTime;
-
- llTime = (SecondsSince1970 * TICKSPERSEC) + TICKSTO1970;
-
- *Time = *(LARGE_INTEGER *)&llTime;
+ Time->QuadPart = (SecondsSince1970 * TICKSPERSEC) + TICKSTO1970;
}
+/*
+ * @implemented
+ */
VOID
STDCALL
RtlSecondsSince1980ToTime(
ULONG SecondsSince1980,
PLARGE_INTEGER Time)
{
- LONGLONG llTime;
-
- llTime = (SecondsSince1980 * TICKSPERSEC) + TICKSTO1980;
-
- *Time = *(LARGE_INTEGER *)&llTime;
+ Time->QuadPart = (SecondsSince1980 * TICKSPERSEC) + TICKSTO1980;
}
+/*
+ * @implemented
+ */
BOOLEAN
STDCALL
RtlTimeToSecondsSince1970(
}
+/*
+ * @implemented
+ */
BOOLEAN
STDCALL
RtlTimeToSecondsSince1980(
}
+/*
+ * @implemented
+ */
NTSTATUS
STDCALL
RtlLocalTimeToSystemTime(PLARGE_INTEGER LocalTime,
}
+/*
+ * @implemented
+ */
NTSTATUS
STDCALL
RtlSystemTimeToLocalTime(PLARGE_INTEGER SystemTime,
}
+/*
+ * @implemented
+ */
VOID
STDCALL
RtlTimeToElapsedTimeFields(IN PLARGE_INTEGER Time,