(compare-periods p1 p2)Periods are not comparable in the java Comparable sense, instead this performs simple units-by-units comparison. So a period of 1 year will always compare greater than a period of 13 months and similar for days and months.
Periods are not comparable in the java Comparable sense, instead this performs simple units-by-units comparison. So a period of 1 year will always compare greater than a period of 13 months and similar for days and months.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |