Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb647a27

Browse files
author
Thomas G. Lockhart
committed
Add comparision routines to support indices on datetime and timespan.
1 parent7c243f8 commitb647a27

File tree

1 file changed

+3
-1
lines changed
  • src/include/utils

1 file changed

+3
-1
lines changed

‎src/include/utils/dt.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* Copyright (c) 1994, Regents of the University of California
1010
*
11-
* $Id: dt.h,v 1.17 1997/08/21 23:57:00 momjian Exp $
11+
* $Id: dt.h,v 1.18 1997/09/04 18:44:29 thomas Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -259,6 +259,7 @@ extern bool datetime_le(DateTime *dt1, DateTime *dt2);
259259
externbooldatetime_ge(DateTime*dt1,DateTime*dt2);
260260
externbooldatetime_gt(DateTime*dt1,DateTime*dt2);
261261
externbooldatetime_finite(DateTime*datetime);
262+
externintdatetime_cmp(DateTime*dt1,DateTime*dt2);
262263
externDateTime*datetime_smaller(DateTime*dt1,DateTime*dt2);
263264
externDateTime*datetime_larger(DateTime*dt1,DateTime*dt2);
264265

@@ -270,6 +271,7 @@ extern bool timespan_lt(TimeSpan *span1, TimeSpan *span2);
270271
externbooltimespan_le(TimeSpan*span1,TimeSpan*span2);
271272
externbooltimespan_ge(TimeSpan*span1,TimeSpan*span2);
272273
externbooltimespan_gt(TimeSpan*span1,TimeSpan*span2);
274+
externinttimespan_cmp(TimeSpan*span1,TimeSpan*span2);
273275
externTimeSpan*timespan_smaller(TimeSpan*span1,TimeSpan*span2);
274276
externTimeSpan*timespan_larger(TimeSpan*span1,TimeSpan*span2);
275277

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp