Skip to content

Commit 0217a1c

Browse files
committed
put before with not-after
1 parent 3d0a8be commit 0217a1c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/java_time.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
[java-time.core
1313
zero? negative? negate abs max min
14-
before? not-before? after? not-after?
14+
before? not-after? after? not-before?
1515
supports? chronology fields units properties property
1616
as value range min-value max-value largest-min-value smallest-max-value
1717
with-value with-min-value with-max-value with-largest-min-value with-smallest-max-value

src/java_time/core.clj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@
170170
(before? y (first more)))
171171
false)))
172172

173-
(def not-before?
173+
(def not-after?
174174
""
175-
(complement before?))
175+
(complement after?))
176176

177177
(defn after?
178178
"Returns a truthy value if time entities are ordered from the latest to the
@@ -193,9 +193,9 @@
193193
(after? y (first more)))
194194
false)))
195195

196-
(def not-after?
196+
(def not-before?
197197
""
198-
(complement after?))
198+
(complement before?))
199199

200200
(defn plus
201201
"Adds all of the `os` to the time entity `o`. `plus` is not commutative, the

0 commit comments

Comments
 (0)