We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66b584b commit 7629207Copy full SHA for 7629207
README.md
@@ -307,6 +307,26 @@ last argument. Offsets can be specified as float values:
307
=> #<java.time.ZoneOffset -01:30>
308
```
309
310
+Compare dates:
311
+
312
+```clj
313
+(before? (year 2020) (year 2021))
314
+=> true
315
316
+(after? (year 2021) (year 2021))
317
+=> false
318
319
+(let [expiration-date (year 2010)
320
+ purchase-date (year 2010)]
321
+ (not-before? expiration-date purchase-date))
322
323
324
+(let [start-date (year 2011)
325
+ cutoff-date (year 2010)]
326
+ (not-after? start-date cutoff-date))
327
328
+```
329
330
#### Conversions
331
332
Time entities can be converted to other time entities if the target contains
0 commit comments