From b647a27cf50ce91f5038c1cd0a8ceab6b7e68e72 Mon Sep 17 00:00:00 2001 From: "Thomas G. Lockhart" Date: Thu, 4 Sep 1997 18:44:29 +0000 Subject: [PATCH] Add comparision routines to support indices on datetime and timespan. --- src/include/utils/dt.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/include/utils/dt.h b/src/include/utils/dt.h index b9e678687e..2065e62d05 100644 --- a/src/include/utils/dt.h +++ b/src/include/utils/dt.h @@ -8,7 +8,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: dt.h,v 1.17 1997/08/21 23:57:00 momjian Exp $ + * $Id: dt.h,v 1.18 1997/09/04 18:44:29 thomas Exp $ * *------------------------------------------------------------------------- */ @@ -259,6 +259,7 @@ extern bool datetime_le(DateTime *dt1, DateTime *dt2); extern bool datetime_ge(DateTime *dt1, DateTime *dt2); extern bool datetime_gt(DateTime *dt1, DateTime *dt2); extern bool datetime_finite(DateTime *datetime); +extern int datetime_cmp(DateTime *dt1, DateTime *dt2); extern DateTime *datetime_smaller(DateTime *dt1, DateTime *dt2); extern DateTime *datetime_larger(DateTime *dt1, DateTime *dt2); @@ -270,6 +271,7 @@ extern bool timespan_lt(TimeSpan *span1, TimeSpan *span2); extern bool timespan_le(TimeSpan *span1, TimeSpan *span2); extern bool timespan_ge(TimeSpan *span1, TimeSpan *span2); extern bool timespan_gt(TimeSpan *span1, TimeSpan *span2); +extern int timespan_cmp(TimeSpan *span1, TimeSpan *span2); extern TimeSpan *timespan_smaller(TimeSpan *span1, TimeSpan *span2); extern TimeSpan *timespan_larger(TimeSpan *span1, TimeSpan *span2); -- GitLab