forked from dm3/clojure.java-time
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunits.clj
More file actions
24 lines (22 loc) · 736 Bytes
/
units.clj
File metadata and controls
24 lines (22 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(ns java-time.units
(:import (java.time.temporal IsoFields ChronoUnit)))
(defonce iso
{:week-based-years IsoFields/WEEK_BASED_YEARS
:quarter-years IsoFields/QUARTER_YEARS})
(defonce chrono
{:millis ChronoUnit/MILLIS
:weeks ChronoUnit/WEEKS
:centuries ChronoUnit/CENTURIES
:minutes ChronoUnit/MINUTES
:days ChronoUnit/DAYS
:years ChronoUnit/YEARS
:seconds ChronoUnit/SECONDS
:nanos ChronoUnit/NANOS
:decades ChronoUnit/DECADES
:forever ChronoUnit/FOREVER
:hours ChronoUnit/HOURS
:micros ChronoUnit/MICROS
:millenia ChronoUnit/MILLENNIA
:months ChronoUnit/MONTHS
:half-days ChronoUnit/HALF_DAYS
:eras ChronoUnit/ERAS})