]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.10/Include/timefuncs.h
AppPkg/Applications/Python/Python-2.7.10: Initial Checkin part 1/5.
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.10 / Include / timefuncs.h
diff --git a/AppPkg/Applications/Python/Python-2.7.10/Include/timefuncs.h b/AppPkg/Applications/Python/Python-2.7.10/Include/timefuncs.h
new file mode 100644 (file)
index 0000000..ae5acf7
--- /dev/null
@@ -0,0 +1,26 @@
+/*  timefuncs.h\r
+ */\r
+\r
+/* Utility function related to timemodule.c. */\r
+\r
+#ifndef TIMEFUNCS_H\r
+#define TIMEFUNCS_H\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+\r
+\r
+/* Cast double x to time_t, but raise ValueError if x is too large\r
+ * to fit in a time_t.  ValueError is set on return iff the return\r
+ * value is (time_t)-1 and PyErr_Occurred().\r
+ */\r
+PyAPI_FUNC(time_t) _PyTime_DoubleToTimet(double x);\r
+\r
+/* Get the current time since the epoch in seconds */\r
+PyAPI_FUNC(double) _PyTime_FloatTime(void);\r
+\r
+\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+#endif  /* TIMEFUNCS_H */\r