forked from dm3/clojure.java-time
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrepl.clj
More file actions
28 lines (21 loc) · 813 Bytes
/
repl.clj
File metadata and controls
28 lines (21 loc) · 813 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
25
26
27
28
(ns java-time.repl
(:require [java-time.adjuster :as j.adj]
[java-time.properties :as j.p]
[java-time.format :as jt.f]
[java-time.zone :as jt.z]
[java-time.defconversion :as jt.dc]
[clojure.pprint :as pprint]))
(defn show-adjusters []
(pprint/pprint (sort (keys j.adj/predefined-adjusters))))
(defn show-units []
(pprint/pprint (sort (keys (:predefined j.p/unit-groups)))))
(defn show-fields []
(pprint/pprint (sort (keys (:predefined j.p/field-groups)))))
(defn show-formatters []
(pprint/pprint (sort (keys jt.f/predefined-formatters))))
(defn show-timezones []
(pprint/pprint (sort (jt.z/available-zone-ids))))
(defn show-graph []
(pprint/pprint (.m-by-arity @jt.dc/graph)))
(defn show-path [from to]
(jt.dc/get-path from to))