]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - ubuntu/vbox/vboxguest/include/iprt/time.h
UBUNTU: ubuntu: vbox -- update to 5.2.8-dfsg-2
[mirror_ubuntu-bionic-kernel.git] / ubuntu / vbox / vboxguest / include / iprt / time.h
index 1b5e714527b4e0113283c39c3149947df98c0ee6..0728a30a46daff443f18f31e8b14851893200657 100644 (file)
@@ -785,6 +785,21 @@ RTDECL(PRTTIME) RTTimeFromString(PRTTIME pTime, const char *pszString);
  */
 RTDECL(bool) RTTimeIsLeapYear(int32_t i32Year);
 
+/**
+ * Compares two normalized time structures.
+ *
+ * @retval  0 if equal.
+ * @retval  -1 if @a pLeft is earlier than @a pRight.
+ * @retval  1 if @a pRight is earlier than @a pLeft.
+ *
+ * @param   pLeft       The left side time.  NULL is accepted.
+ * @param   pRight      The right side time.  NULL is accepted.
+ *
+ * @note    A NULL time is considered smaller than anything else.  If both are
+ *          NULL, they are considered equal.
+ */
+RTDECL(int) RTTimeCompare(PCRTTIME pLeft, PCRTTIME pRight);
+
 /**
  * Gets the current nanosecond timestamp.
  *