Example Date comparison functions 011

 

 

Description

These examples use the comparison functions to do a case-sensitive comparison of two objects of the same type. A Boolean value is returned.

 

Details

(> #Jan,1,1992 #Jan,1,1993 ) Returns: false
(< #Jan,2,1993 #Jan,1,1993 ) Returns: false
(= #Jan,2,1993 #Jan,2,1993 ) Returns: true

Notes and Hints

If you prefer an integer resulting from the comparison (0 for equal, -1 for less than, and 1 for greater than), use the compare function.

 

Related Examples

Here are examples of the comparison function at work.

BitVector compare 018 BitVector comparison 014 Boolean comparison functions 009 Brick comparison 019
Character comparison 010 Complex comparison 021 Date comparison functions 011 Dictionary compare 004
Dictionary comparison functions 004 Directory compare 005 Directory comparison functions 005 FltVector comparison functions 014
Function comparison functions 012 IntVector compare 015 IntVector comparison functions 014 List comparison 020
Matrix compare 007 Matrix comparison functions 007 NumMatrix compare 023 NumMatrix comparison functions 023
NumVector compare 016 NumVector comparison 014 Number comparison 010 ObjVector compare 017
ObjVector comparison functions 014 ObjectRepository comparison 021 ObjectRepository comparison 022 Pair comparison 019
ShortVector compare 016 ShortVector comparison functions 015 String comparison functions 001 Structure comparison functions 003
Symbol comparison functions 002 Vector compare 006 Vector comparison functions 006 Void comparison functions 008

 

Function Links

Here is the link to the current function used in this example.

comparison

Here are a number of links to other related functions.

compare(#void) compareEQ(#void) compareGT(#void) compareNE(#void)
compareLT(#void) compareLE(#void)

 

Argument Types

Here are the links to the data types of the arguments used in this example.

Date

Here are a number of links to examples having similar argument types.

Date addMethod 015 Date addMethod 016 Date compare 012 Date compareEQ 012
Date compareGE 012 Date compareGT 012 Date compareLE 012 Date compareLT 012
Date compareNE 012 Date comparison functions 011 Date day 001 Date days360 001
Date getTickCount 001 Date hour 001 Date isDate 001 Date isEqual 010
Date isEqual 011 Date isIdentical 010 Date julian 001 Date minute 001
Date month 001 Date now 001 Date ref 020 Date second 001
Date time 001 Date time 002 Date today 001 Date type 014
Date year 001 Function ref 021 String parse 001

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE