template::util::date::compare (public)

 template::util::date::compare date1 date2

Defined in packages/acs-templating/tcl/date-procs.tcl

Perform date comparison; same syntax as string compare.

Parameters:
date1 (required)
date2 (required)

Partial Call Graph (max 5 caller/called nodes):
%3

Testcases:
No testcase defined.
Source code:
    for { set i 0 } { $i < 5 } { incr i } {
        if { [lindex $date1 $i] < [lindex $date2 $i] } {
            return -1
        } elseif { [lindex $date1 $i] > [lindex $date2 $i] } {
            return 1
        }
    }
    return 0
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: