March 2003
Intermediate to advanced
656 pages
39h 30m
English
cmp
cmp(obj1,obj2,accuracy=0.0)
Compares two DateTime or
DateTimeDelta instances
obj1 and obj2,
and returns -1, 0, or
1, like the built-in function
cmp. It also returns 0 (meaning
that obj1 and
obj2 are
“equal”) if the two instants or
durations differ by less than accuracy
seconds.
Read now
Unlock full access