7 lines
279 B
Clojure
Executable file
7 lines
279 B
Clojure
Executable file
#!/usr/bin/env bb
|
|
|
|
(def now (java.time.ZonedDateTime/now))
|
|
(def LA-timezone (java.time.ZoneId/of "America/Los_Angeles"))
|
|
(def LA-time (.withZoneSameInstant now LA-timezone))
|
|
(def pattern (java.time.format.DateTimeFormatter/ofPattern "HH:mm"))
|
|
(println (.format LA-time pattern))
|