Skip to content

Commit

Permalink
Add of-months
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhinavOmprakash committed Oct 22, 2021
1 parent 97c1f1d commit 54d2123
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tick/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,11 @@
[n]
(new-period n :days))

(defn of-months
"Takes a java.lang.Long n and returns a period of n months."
[n]
(new-period n :months))

;; Coercions

(extend-protocol p/IExtraction
Expand Down

0 comments on commit 54d2123

Please sign in to comment.