PreviousNext

utc compare

Compares two absolute timestamps indicating the temporal order. The syntax is:

utc compare absolute_timestamp absolute_timestamp [-noinaccuracy]

Description
The utc compare command takes two timestamps and returns 1 if the first is earlier, 1 if the second is earlier, and 0 if it is indeterminate. The operation accepts -noinaccuracy to ignore inaccuracies in comparisons, in this case a return of 0 (zero) indicates that the times are the same.

Privileges Required
No special privileges are needed to use the utc compare command.

Examples

dcecp> utc compare 1994-10-18-13:22:32.816-04:00I----- \
1994-10-18-13:21:50.419-04:00I----- -noinaccuracy

1
dcecp>