├── web-target └── public │ └── .gitkeep ├── .nrepl.edn ├── .gitignore ├── dev ├── non_shadow_tests.clj ├── cljs.clj ├── build.clj └── gen.clj ├── src └── cljc │ └── java_time │ ├── temporal │ ├── temporal_adjuster.cljs │ ├── temporal_adjuster.clj │ ├── temporal_query.cljs │ ├── temporal_query.clj │ ├── iso_fields.clj │ ├── iso_fields.cljs │ ├── temporal_queries.clj │ ├── temporal_queries.cljs │ ├── temporal_amount.cljs │ ├── temporal_amount.clj │ ├── temporal_accessor.cljs │ ├── temporal_accessor.clj │ ├── temporal_unit.cljs │ ├── temporal_unit.clj │ ├── week_fields.cljs │ ├── week_fields.clj │ ├── temporal_adjusters.clj │ ├── temporal_adjusters.cljs │ ├── temporal_field.cljs │ ├── value_range.cljs │ ├── temporal_field.clj │ ├── value_range.clj │ ├── temporal.cljs │ ├── temporal.clj │ ├── chrono_unit.clj │ ├── chrono_unit.cljs │ ├── chrono_field.clj │ └── chrono_field.cljs │ ├── format │ ├── resolver_style.clj │ ├── resolver_style.cljs │ ├── sign_style.clj │ ├── sign_style.cljs │ ├── decimal_style.cljs │ ├── text_style.clj │ ├── text_style.cljs │ └── decimal_style.clj │ ├── zone_id.clj │ ├── zone_id.cljs │ ├── clock.clj │ ├── clock.cljs │ ├── extn │ ├── predicates.cljc │ └── calendar_awareness.cljc │ ├── day_of_week.clj │ ├── day_of_week.cljs │ ├── zone_offset.cljs │ ├── month_day.cljs │ ├── month.clj │ ├── month.cljs │ ├── zone_offset.clj │ ├── period.cljs │ ├── period.clj │ ├── month_day.clj │ ├── year.cljs │ ├── year_month.cljs │ └── instant.cljs ├── .github ├── FUNDING.yml └── workflows │ └── tests.yaml ├── Makefile ├── LICENSE ├── dev-resources └── src-pom.xml ├── deps.edn ├── test └── cljc │ └── java_time_test.cljc └── README.md /web-target/public/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.nrepl.edn: -------------------------------------------------------------------------------- 1 | {:middleware [shadow.cljs.devtools.server.nrepl/middleware]} -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .cpcache 2 | .idea 3 | .shadow-cljs 4 | node_modules 5 | web-target/public/* 6 | .nrepl-port 7 | package.json 8 | package-lock.json 9 | *.jar 10 | 11 | -------------------------------------------------------------------------------- /dev/non_shadow_tests.clj: -------------------------------------------------------------------------------- 1 | (ns non-shadow-tests 2 | (:require [com.widdindustries.vanilla-release-compile :as vrc] 3 | [com.widdindustries.tiadough-cljs2 :as cljs2])) 4 | 5 | 6 | (defn cljsjs [{:keys [compile-mode]}] 7 | (cljs2/start-funnel) 8 | (vrc/build "cljsjs-test" 9 | {:preloads ['lambdaisland.chui.remote] 10 | :closure-defines {'lambdaisland.funnel-client/FUNNEL_URI cljs2/funnel-uri}}) 11 | (cljs/) 12 | ) 13 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/temporal_adjuster.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.temporal-adjuster (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.temporal :refer [TemporalAdjuster]])) 2 | (clojure.core/defn adjust-into {:arglists (quote (["java.time.temporal.TemporalAdjuster" "java.time.temporal.Temporal"]))} (^js/JSJoda.Temporal [^js/JSJoda.TemporalAdjuster this15742 ^js/JSJoda.Temporal java-time-temporal-Temporal15743] (.adjustInto this15742 java-time-temporal-Temporal15743))) 3 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/temporal_adjuster.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.temporal-adjuster (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time.temporal TemporalAdjuster])) 2 | (clojure.core/defn adjust-into {:arglists (quote (["java.time.temporal.TemporalAdjuster" "java.time.temporal.Temporal"]))} (^java.time.temporal.Temporal [^java.time.temporal.TemporalAdjuster this15740 ^java.time.temporal.Temporal java-time-temporal-Temporal15741] (.adjustInto this15740 java-time-temporal-Temporal15741))) 3 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/temporal_query.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.temporal-query (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.temporal :refer [TemporalQuery]])) 2 | (clojure.core/defn query-from {:arglists (quote (["java.time.temporal.TemporalQuery" "java.time.temporal.TemporalAccessor"]))} (^java.lang.Object [^js/JSJoda.TemporalQuery this15746 ^js/JSJoda.TemporalAccessor java-time-temporal-TemporalAccessor15747] (.queryFrom this15746 java-time-temporal-TemporalAccessor15747))) 3 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/temporal_query.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.temporal-query (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time.temporal TemporalQuery])) 2 | (clojure.core/defn query-from {:arglists (quote (["java.time.temporal.TemporalQuery" "java.time.temporal.TemporalAccessor"]))} (^java.lang.Object [^java.time.temporal.TemporalQuery this15744 ^java.time.temporal.TemporalAccessor java-time-temporal-TemporalAccessor15745] (.queryFrom this15744 java-time-temporal-TemporalAccessor15745))) 3 | -------------------------------------------------------------------------------- /dev/cljs.clj: -------------------------------------------------------------------------------- 1 | (ns cljs 2 | (:require [com.widdindustries.tiado-cljs2 :as util])) 3 | 4 | (defn test-watch [] 5 | (util/browser-test-build :watch {})) 6 | 7 | (comment 8 | 9 | ; start up live-compilation of tests 10 | (test-watch) 11 | ; run cljs tests, having opened browser at test page (see print output of above "for tests, open...") 12 | (util/run-tests) 13 | ; start a cljs repl session in the test build. :cljs/quit to exit 14 | (util/repl :browser-test-build) 15 | ; run tests in headless browser 16 | (util/compile-and-run-tests-headless* :release) 17 | 18 | (util/stop-server) 19 | 20 | ) -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/iso_fields.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.iso-fields (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time.temporal IsoFields])) 2 | (def week-based-year java.time.temporal.IsoFields/WEEK_BASED_YEAR) 3 | (def week-of-week-based-year java.time.temporal.IsoFields/WEEK_OF_WEEK_BASED_YEAR) 4 | (def quarter-years java.time.temporal.IsoFields/QUARTER_YEARS) 5 | (def week-based-years java.time.temporal.IsoFields/WEEK_BASED_YEARS) 6 | (def day-of-quarter java.time.temporal.IsoFields/DAY_OF_QUARTER) 7 | (def quarter-of-year java.time.temporal.IsoFields/QUARTER_OF_YEAR) 8 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: widdindustries 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | test-clj: 2 | clojure -Atest -e deprecated 3 | test-cljs-shadow: 4 | clojure -Atest-cljs -X com.widdindustries.tiado-cljs2/tests-ci-shadow :compile-mode :release 5 | test-cljs-cljsjs: 6 | clojure -Atest-cljs -X non-non-shadow-tests/cljsjs :compile-mode :release 7 | test: 8 | make test-clj && make test-cljs-shadow && make test-cljs-cljsjs 9 | clean: 10 | clj -T:build clean 11 | install: 12 | make clean && clj -T:build jar && clj -T:build install \ 13 | && mkdir -p tmp && cd tmp 14 | deploy: 15 | clj -T:build deploy 16 | .PHONY: list 17 | list: 18 | @$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs 19 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/iso_fields.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.iso-fields (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.temporal :refer [IsoFields]])) 2 | (def week-based-year (goog.object/get java.time.temporal.IsoFields "WEEK_BASED_YEAR")) 3 | (def week-of-week-based-year (goog.object/get java.time.temporal.IsoFields "WEEK_OF_WEEK_BASED_YEAR")) 4 | (def quarter-years (goog.object/get java.time.temporal.IsoFields "QUARTER_YEARS")) 5 | (def week-based-years (goog.object/get java.time.temporal.IsoFields "WEEK_BASED_YEARS")) 6 | (def day-of-quarter (goog.object/get java.time.temporal.IsoFields "DAY_OF_QUARTER")) 7 | (def quarter-of-year (goog.object/get java.time.temporal.IsoFields "QUARTER_OF_YEAR")) 8 | -------------------------------------------------------------------------------- /.github/workflows/tests.yaml: -------------------------------------------------------------------------------- 1 | # https://practical.li/clojure/continuous-integration/github-actions/ 2 | name: Tests build 3 | on: [push, pull_request] 4 | jobs: 5 | clojure: 6 | runs-on: ubuntu-latest 7 | 8 | steps: 9 | - name: Checkout 10 | uses: actions/checkout@v2 11 | 12 | - name: Prepare java 13 | uses: actions/setup-java@v2 14 | with: 15 | distribution: 'temurin' 16 | java-version: '17' 17 | 18 | - name: Install clojure tools 19 | uses: DeLaGuardo/setup-clojure@4.0 20 | with: 21 | cli: 1.10.1.693 # Clojure CLI based on tools.deps 22 | 23 | - name: Run Clj Unit tests 24 | run: make test-clj 25 | 26 | - name: Install Chrome 27 | uses: browser-actions/setup-chrome@latest 28 | 29 | - name: Run Cljs Unit tests 30 | run: make test-cljs-shadow -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Widd Industries Ltd 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/temporal_queries.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.temporal-queries (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time.temporal TemporalQueries])) 2 | (clojure.core/defn precision {:arglists (quote ([]))} (^java.time.temporal.TemporalQuery [] (java.time.temporal.TemporalQueries/precision))) 3 | (clojure.core/defn chronology {:arglists (quote ([]))} (^java.time.temporal.TemporalQuery [] (java.time.temporal.TemporalQueries/chronology))) 4 | (clojure.core/defn zone-id {:arglists (quote ([]))} (^java.time.temporal.TemporalQuery [] (java.time.temporal.TemporalQueries/zoneId))) 5 | (clojure.core/defn zone {:arglists (quote ([]))} (^java.time.temporal.TemporalQuery [] (java.time.temporal.TemporalQueries/zone))) 6 | (clojure.core/defn local-date {:arglists (quote ([]))} (^java.time.temporal.TemporalQuery [] (java.time.temporal.TemporalQueries/localDate))) 7 | (clojure.core/defn local-time {:arglists (quote ([]))} (^java.time.temporal.TemporalQuery [] (java.time.temporal.TemporalQueries/localTime))) 8 | (clojure.core/defn offset {:arglists (quote ([]))} (^java.time.temporal.TemporalQuery [] (java.time.temporal.TemporalQueries/offset))) 9 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/temporal_queries.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.temporal-queries (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.temporal :refer [TemporalQueries]])) 2 | (clojure.core/defn precision {:arglists (quote ([]))} (^js/JSJoda.TemporalQuery [] (js-invoke java.time.temporal.TemporalQueries "precision"))) 3 | (clojure.core/defn chronology {:arglists (quote ([]))} (^js/JSJoda.TemporalQuery [] (js-invoke java.time.temporal.TemporalQueries "chronology"))) 4 | (clojure.core/defn zone-id {:arglists (quote ([]))} (^js/JSJoda.TemporalQuery [] (js-invoke java.time.temporal.TemporalQueries "zoneId"))) 5 | (clojure.core/defn zone {:arglists (quote ([]))} (^js/JSJoda.TemporalQuery [] (js-invoke java.time.temporal.TemporalQueries "zone"))) 6 | (clojure.core/defn local-date {:arglists (quote ([]))} (^js/JSJoda.TemporalQuery [] (js-invoke java.time.temporal.TemporalQueries "localDate"))) 7 | (clojure.core/defn local-time {:arglists (quote ([]))} (^js/JSJoda.TemporalQuery [] (js-invoke java.time.temporal.TemporalQueries "localTime"))) 8 | (clojure.core/defn offset {:arglists (quote ([]))} (^js/JSJoda.TemporalQuery [] (js-invoke java.time.temporal.TemporalQueries "offset"))) 9 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/temporal_amount.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.temporal-amount (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.temporal :refer [TemporalAmount]])) 2 | (clojure.core/defn add-to {:arglists (quote (["java.time.temporal.TemporalAmount" "java.time.temporal.Temporal"]))} (^js/JSJoda.Temporal [^js/JSJoda.TemporalAmount this15565 ^js/JSJoda.Temporal java-time-temporal-Temporal15566] (.addTo this15565 java-time-temporal-Temporal15566))) 3 | (clojure.core/defn subtract-from {:arglists (quote (["java.time.temporal.TemporalAmount" "java.time.temporal.Temporal"]))} (^js/JSJoda.Temporal [^js/JSJoda.TemporalAmount this15567 ^js/JSJoda.Temporal java-time-temporal-Temporal15568] (.subtractFrom this15567 java-time-temporal-Temporal15568))) 4 | (clojure.core/defn get {:arglists (quote (["java.time.temporal.TemporalAmount" "java.time.temporal.TemporalUnit"]))} (^long [^js/JSJoda.TemporalAmount this15569 ^js/JSJoda.TemporalUnit java-time-temporal-TemporalUnit15570] (.get this15569 java-time-temporal-TemporalUnit15570))) 5 | (clojure.core/defn get-units {:arglists (quote (["java.time.temporal.TemporalAmount"]))} (^java.util.List [^js/JSJoda.TemporalAmount this15571] (.units this15571))) 6 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/temporal_amount.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.temporal-amount (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time.temporal TemporalAmount])) 2 | (clojure.core/defn add-to {:arglists (quote (["java.time.temporal.TemporalAmount" "java.time.temporal.Temporal"]))} (^java.time.temporal.Temporal [^java.time.temporal.TemporalAmount this15558 ^java.time.temporal.Temporal java-time-temporal-Temporal15559] (.addTo this15558 java-time-temporal-Temporal15559))) 3 | (clojure.core/defn subtract-from {:arglists (quote (["java.time.temporal.TemporalAmount" "java.time.temporal.Temporal"]))} (^java.time.temporal.Temporal [^java.time.temporal.TemporalAmount this15560 ^java.time.temporal.Temporal java-time-temporal-Temporal15561] (.subtractFrom this15560 java-time-temporal-Temporal15561))) 4 | (clojure.core/defn get {:arglists (quote (["java.time.temporal.TemporalAmount" "java.time.temporal.TemporalUnit"]))} (^long [^java.time.temporal.TemporalAmount this15562 ^java.time.temporal.ChronoUnit java-time-temporal-TemporalUnit15563] (.get this15562 java-time-temporal-TemporalUnit15563))) 5 | (clojure.core/defn get-units {:arglists (quote (["java.time.temporal.TemporalAmount"]))} (^java.util.List [^java.time.temporal.TemporalAmount this15564] (.getUnits this15564))) 6 | -------------------------------------------------------------------------------- /dev-resources/src-pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4.0.0 4 | 5 | Widd Industries Ltd 6 | http://widdindustries.com 7 | 8 | Provides the full java-time API to Clojure and Clojurescript 9 | https://github.com/henryw374/cljc.java-time 10 | 11 | 12 | http://opensource.org/licenses/MIT 13 | MIT 14 | 15 | 16 | 17 | jar 18 | 19 | https://github.com/henryw374/cljc.java-time 20 | scm:git:git@github.com:henryw374/cljc.java-time.git 21 | scm:git:git@github.com:henryw374/cljc.java-time.git 22 | 23 | 24 | 25 | clojars 26 | Clojars repository 27 | https://clojars.org/repo 28 | 29 | 30 | 31 | 32 | clojars 33 | https://repo.clojars.org/ 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /dev/build.clj: -------------------------------------------------------------------------------- 1 | (ns build 2 | (:require [clojure.tools.build.api :as b] 3 | [deps-deploy.deps-deploy :as dd] 4 | [clojure.java.shell :as sh] 5 | [clojure.string :as string])) 6 | (def lib 'com.widdindustries/cljc.java-time) 7 | (def version (some-> (sh/sh "git" "describe" "--tags" "--abbrev=0") 8 | :out 9 | (string/trim-newline))) 10 | 11 | (println "version " version) 12 | (def class-dir "target/classes") 13 | (def basis (b/create-basis {:project "deps.edn"})) 14 | (def jar-file (format "target/%s-%s.jar" (name lib) version)) 15 | 16 | (defn clean [_] 17 | (b/delete {:path "target"}) 18 | (sh/sh "rm" "-rf" "web-target/public/*") 19 | ) 20 | 21 | (defn jar [_] 22 | (b/write-pom {:src-pom "dev-resources/src-pom.xml" 23 | :class-dir class-dir 24 | :lib lib 25 | :version version 26 | :basis basis 27 | :src-dirs ["src"]}) 28 | (b/copy-dir {:src-dirs ["src"] 29 | :target-dir class-dir}) 30 | (b/jar {:class-dir class-dir 31 | :jar-file jar-file})) 32 | 33 | (defn install [_] 34 | (b/install {:basis basis 35 | :lib lib 36 | :version version 37 | :jar-file jar-file 38 | :class-dir class-dir}) 39 | (println (str "clj -Sdeps '{:deps {com.widdindustries/cljc.java-time {:mvn/version \"" version "\"}}}'")) 40 | ) 41 | 42 | (defn deploy [_] 43 | (dd/deploy {:installer :remote 44 | :artifact jar-file 45 | :pom-file (b/pom-path {:lib lib :class-dir class-dir})})) -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/temporal_accessor.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.temporal-accessor (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.temporal :refer [TemporalAccessor]])) 2 | (clojure.core/defn get {:arglists (quote (["java.time.temporal.TemporalAccessor" "java.time.temporal.TemporalField"]))} (^int [^js/JSJoda.TemporalAccessor this15730 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15731] (.get this15730 java-time-temporal-TemporalField15731))) 3 | (clojure.core/defn get-long {:arglists (quote (["java.time.temporal.TemporalAccessor" "java.time.temporal.TemporalField"]))} (^long [^js/JSJoda.TemporalAccessor this15732 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15733] (.getLong this15732 java-time-temporal-TemporalField15733))) 4 | (clojure.core/defn query {:arglists (quote (["java.time.temporal.TemporalAccessor" "java.time.temporal.TemporalQuery"]))} (^java.lang.Object [^js/JSJoda.TemporalAccessor this15734 ^js/JSJoda.TemporalQuery java-time-temporal-TemporalQuery15735] (.query this15734 java-time-temporal-TemporalQuery15735))) 5 | (clojure.core/defn is-supported {:arglists (quote (["java.time.temporal.TemporalAccessor" "java.time.temporal.TemporalField"]))} (^boolean [^js/JSJoda.TemporalAccessor this15736 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15737] (.isSupported this15736 java-time-temporal-TemporalField15737))) 6 | (clojure.core/defn range {:arglists (quote (["java.time.temporal.TemporalAccessor" "java.time.temporal.TemporalField"]))} (^js/JSJoda.ValueRange [^js/JSJoda.TemporalAccessor this15738 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15739] (.range this15738 java-time-temporal-TemporalField15739))) 7 | -------------------------------------------------------------------------------- /deps.edn: -------------------------------------------------------------------------------- 1 | {:paths ["src"] 2 | :deps {com.widdindustries/cljs.java-time {:mvn/version "0.1.20"}} 3 | :aliases {:build {:extra-deps {slipset/deps-deploy {:mvn/version "RELEASE"} 4 | io.github.clojure/tools.build {:git/tag "v0.8.2" :git/sha "ba1a2bf"}} 5 | :paths ["dev"] 6 | :ns-default build} 7 | :dev {:extra-paths ["dev" "test"] 8 | :extra-deps {medley/medley {:mvn/version "0.8.4"} 9 | camel-snake-kebab/camel-snake-kebab {:mvn/version "0.4.0"} 10 | org.clojure/tools.namespace {:mvn/version "0.2.11"} 11 | org.clojure/clojure {:mvn/version "1.11.1"} 12 | }} 13 | :bb {:extra-deps {tubular/tubular {:mvn/version "1.3.0"}} 14 | :extra-paths ["dev" "test"]} 15 | :test {:extra-paths ["test"] 16 | :extra-deps {com.cognitect/test-runner {:git/url "https://github.com/cognitect-labs/test-runner.git" 17 | :sha "028a6d41ac9ac5d5c405dfc38e4da6b4cc1255d5"}} 18 | :main-opts ["-m" "cognitect.test-runner"]} 19 | :test-cljs {:extra-paths ["dev" "test" "web-target"] 20 | :extra-deps {com.widdindustries/tiado-cljs2 21 | { ;:local/root "../shadow-template" 22 | :git/url "https://github.com/henryw374/tiado-cljs2.git" 23 | :sha "0f3507c377dc76ea4c471d43dd91395e498c0e73" 24 | }}}}} 25 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/temporal_accessor.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.temporal-accessor (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time.temporal TemporalAccessor])) 2 | (clojure.core/defn get {:arglists (quote (["java.time.temporal.TemporalAccessor" "java.time.temporal.TemporalField"]))} (^java.lang.Integer [^java.time.temporal.TemporalAccessor this15720 ^java.time.temporal.TemporalField java-time-temporal-TemporalField15721] (.get this15720 java-time-temporal-TemporalField15721))) 3 | (clojure.core/defn get-long {:arglists (quote (["java.time.temporal.TemporalAccessor" "java.time.temporal.TemporalField"]))} (^long [^java.time.temporal.TemporalAccessor this15722 ^java.time.temporal.TemporalField java-time-temporal-TemporalField15723] (.getLong this15722 java-time-temporal-TemporalField15723))) 4 | (clojure.core/defn query {:arglists (quote (["java.time.temporal.TemporalAccessor" "java.time.temporal.TemporalQuery"]))} (^java.lang.Object [^java.time.temporal.TemporalAccessor this15724 ^java.time.temporal.TemporalQuery java-time-temporal-TemporalQuery15725] (.query this15724 java-time-temporal-TemporalQuery15725))) 5 | (clojure.core/defn is-supported {:arglists (quote (["java.time.temporal.TemporalAccessor" "java.time.temporal.TemporalField"]))} (^java.lang.Boolean [^java.time.temporal.TemporalAccessor this15726 ^java.time.temporal.TemporalField java-time-temporal-TemporalField15727] (.isSupported this15726 java-time-temporal-TemporalField15727))) 6 | (clojure.core/defn range {:arglists (quote (["java.time.temporal.TemporalAccessor" "java.time.temporal.TemporalField"]))} (^java.time.temporal.ValueRange [^java.time.temporal.TemporalAccessor this15728 ^java.time.temporal.TemporalField java-time-temporal-TemporalField15729] (.range this15728 java-time-temporal-TemporalField15729))) 7 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/temporal_unit.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.temporal-unit (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.temporal :refer [TemporalUnit]])) 2 | (clojure.core/defn is-date-based {:arglists (quote (["java.time.temporal.TemporalUnit"]))} (^boolean [^js/JSJoda.TemporalUnit this15761] (.isDateBased this15761))) 3 | (clojure.core/defn is-supported-by {:arglists (quote (["java.time.temporal.TemporalUnit" "java.time.temporal.Temporal"]))} (^boolean [^js/JSJoda.TemporalUnit this15762 ^js/JSJoda.Temporal java-time-temporal-Temporal15763] (.isSupportedBy this15762 java-time-temporal-Temporal15763))) 4 | (clojure.core/defn is-time-based {:arglists (quote (["java.time.temporal.TemporalUnit"]))} (^boolean [^js/JSJoda.TemporalUnit this15764] (.isTimeBased this15764))) 5 | (clojure.core/defn get-duration {:arglists (quote (["java.time.temporal.TemporalUnit"]))} (^js/JSJoda.Duration [^js/JSJoda.TemporalUnit this15765] (.duration this15765))) 6 | (clojure.core/defn add-to {:arglists (quote (["java.time.temporal.TemporalUnit" "java.time.temporal.Temporal" "long"]))} (^js/JSJoda.Temporal [^js/JSJoda.TemporalUnit this15766 ^js/JSJoda.Temporal java-time-temporal-Temporal15767 ^long long15768] (.addTo this15766 java-time-temporal-Temporal15767 long15768))) 7 | (clojure.core/defn between {:arglists (quote (["java.time.temporal.TemporalUnit" "java.time.temporal.Temporal" "java.time.temporal.Temporal"]))} (^long [^js/JSJoda.TemporalUnit this15769 ^js/JSJoda.Temporal java-time-temporal-Temporal15770 ^js/JSJoda.Temporal java-time-temporal-Temporal15771] (.between this15769 java-time-temporal-Temporal15770 java-time-temporal-Temporal15771))) 8 | (clojure.core/defn to-string {:arglists (quote (["java.time.temporal.TemporalUnit"]))} (^java.lang.String [^js/JSJoda.TemporalUnit this15772] (.toString this15772))) 9 | (clojure.core/defn is-duration-estimated {:arglists (quote (["java.time.temporal.TemporalUnit"]))} (^boolean [^js/JSJoda.TemporalUnit this15773] (.isDurationEstimated this15773))) 10 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/temporal_unit.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.temporal-unit (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time.temporal TemporalUnit])) 2 | (clojure.core/defn is-date-based {:arglists (quote (["java.time.temporal.TemporalUnit"]))} (^java.lang.Boolean [^java.time.temporal.ChronoUnit this15748] (.isDateBased this15748))) 3 | (clojure.core/defn is-supported-by {:arglists (quote (["java.time.temporal.TemporalUnit" "java.time.temporal.Temporal"]))} (^java.lang.Boolean [^java.time.temporal.ChronoUnit this15749 ^java.time.temporal.Temporal java-time-temporal-Temporal15750] (.isSupportedBy this15749 java-time-temporal-Temporal15750))) 4 | (clojure.core/defn is-time-based {:arglists (quote (["java.time.temporal.TemporalUnit"]))} (^java.lang.Boolean [^java.time.temporal.ChronoUnit this15751] (.isTimeBased this15751))) 5 | (clojure.core/defn get-duration {:arglists (quote (["java.time.temporal.TemporalUnit"]))} (^java.time.Duration [^java.time.temporal.ChronoUnit this15752] (.getDuration this15752))) 6 | (clojure.core/defn add-to {:arglists (quote (["java.time.temporal.TemporalUnit" "java.time.temporal.Temporal" "long"]))} (^java.time.temporal.Temporal [^java.time.temporal.ChronoUnit this15753 ^java.time.temporal.Temporal java-time-temporal-Temporal15754 ^long long15755] (.addTo this15753 java-time-temporal-Temporal15754 long15755))) 7 | (clojure.core/defn between {:arglists (quote (["java.time.temporal.TemporalUnit" "java.time.temporal.Temporal" "java.time.temporal.Temporal"]))} (^long [^java.time.temporal.ChronoUnit this15756 ^java.time.temporal.Temporal java-time-temporal-Temporal15757 ^java.time.temporal.Temporal java-time-temporal-Temporal15758] (.between this15756 java-time-temporal-Temporal15757 java-time-temporal-Temporal15758))) 8 | (clojure.core/defn to-string {:arglists (quote (["java.time.temporal.TemporalUnit"]))} (^java.lang.String [^java.time.temporal.ChronoUnit this15759] (.toString this15759))) 9 | (clojure.core/defn is-duration-estimated {:arglists (quote (["java.time.temporal.TemporalUnit"]))} (^java.lang.Boolean [^java.time.temporal.ChronoUnit this15760] (.isDurationEstimated this15760))) 10 | -------------------------------------------------------------------------------- /src/cljc/java_time/format/resolver_style.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.format.resolver-style (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time.format ResolverStyle])) 2 | (def smart java.time.format.ResolverStyle/SMART) 3 | (def strict java.time.format.ResolverStyle/STRICT) 4 | (def lenient java.time.format.ResolverStyle/LENIENT) 5 | (clojure.core/defn values {:arglists (quote ([]))} (^"java.lang.Class" [] (java.time.format.ResolverStyle/values))) 6 | (clojure.core/defn value-of {:arglists (quote (["java.lang.String"] ["java.lang.Class" "java.lang.String"]))} (^java.time.format.ResolverStyle [^java.lang.String java-lang-String16120] (java.time.format.ResolverStyle/valueOf java-lang-String16120)) (^java.lang.Enum [^java.lang.Class java-lang-Class16121 ^java.lang.String java-lang-String16122] (java.time.format.ResolverStyle/valueOf java-lang-Class16121 java-lang-String16122))) 7 | (clojure.core/defn ordinal {:arglists (quote (["java.time.format.ResolverStyle"]))} (^java.lang.Integer [^java.time.format.ResolverStyle this16123] (.ordinal this16123))) 8 | (clojure.core/defn to-string {:arglists (quote (["java.time.format.ResolverStyle"]))} (^java.lang.String [^java.time.format.ResolverStyle this16124] (.toString this16124))) 9 | (clojure.core/defn name {:arglists (quote (["java.time.format.ResolverStyle"]))} (^java.lang.String [^java.time.format.ResolverStyle this16125] (.name this16125))) 10 | (clojure.core/defn get-declaring-class {:arglists (quote (["java.time.format.ResolverStyle"]))} (^java.lang.Class [^java.time.format.ResolverStyle this16126] (.getDeclaringClass this16126))) 11 | (clojure.core/defn hash-code {:arglists (quote (["java.time.format.ResolverStyle"]))} (^java.lang.Integer [^java.time.format.ResolverStyle this16127] (.hashCode this16127))) 12 | (clojure.core/defn compare-to {:arglists (quote (["java.time.format.ResolverStyle" "java.lang.Enum"]))} (^java.lang.Integer [^java.time.format.ResolverStyle this16128 ^java.lang.Enum java-lang-Enum16129] (.compareTo this16128 java-lang-Enum16129))) 13 | (clojure.core/defn equals {:arglists (quote (["java.time.format.ResolverStyle" "java.lang.Object"]))} (^java.lang.Boolean [^java.time.format.ResolverStyle this16130 ^java.lang.Object java-lang-Object16131] (.equals this16130 java-lang-Object16131))) 14 | -------------------------------------------------------------------------------- /src/cljc/java_time/format/resolver_style.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.format.resolver-style (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.format :refer [ResolverStyle]])) 2 | (def smart (goog.object/get java.time.format.ResolverStyle "SMART")) 3 | (def strict (goog.object/get java.time.format.ResolverStyle "STRICT")) 4 | (def lenient (goog.object/get java.time.format.ResolverStyle "LENIENT")) 5 | (clojure.core/defn values {:arglists (quote ([]))} (^"java.lang.Class" [] (js-invoke java.time.format.ResolverStyle "values"))) 6 | (clojure.core/defn value-of {:arglists (quote (["java.lang.String"] ["java.lang.Class" "java.lang.String"]))} (^js/JSJoda.ResolverStyle [^java.lang.String java-lang-String16132] (js-invoke java.time.format.ResolverStyle "valueOf" java-lang-String16132)) (^java.lang.Enum [^java.lang.Class java-lang-Class16133 ^java.lang.String java-lang-String16134] (js-invoke java.time.format.ResolverStyle "valueOf" java-lang-Class16133 java-lang-String16134))) 7 | (clojure.core/defn ordinal {:arglists (quote (["java.time.format.ResolverStyle"]))} (^int [^js/JSJoda.ResolverStyle this16135] (.ordinal this16135))) 8 | (clojure.core/defn to-string {:arglists (quote (["java.time.format.ResolverStyle"]))} (^java.lang.String [^js/JSJoda.ResolverStyle this16136] (.toString this16136))) 9 | (clojure.core/defn name {:arglists (quote (["java.time.format.ResolverStyle"]))} (^java.lang.String [^js/JSJoda.ResolverStyle this16137] (.name this16137))) 10 | (clojure.core/defn get-declaring-class {:arglists (quote (["java.time.format.ResolverStyle"]))} (^java.lang.Class [^js/JSJoda.ResolverStyle this16138] (.declaringClass this16138))) 11 | (clojure.core/defn hash-code {:arglists (quote (["java.time.format.ResolverStyle"]))} (^int [^js/JSJoda.ResolverStyle this16139] (.hashCode this16139))) 12 | (clojure.core/defn compare-to {:arglists (quote (["java.time.format.ResolverStyle" "java.lang.Enum"]))} (^int [^js/JSJoda.ResolverStyle this16140 ^java.lang.Enum java-lang-Enum16141] (.compareTo this16140 java-lang-Enum16141))) 13 | (clojure.core/defn equals {:arglists (quote (["java.time.format.ResolverStyle" "java.lang.Object"]))} (^boolean [^js/JSJoda.ResolverStyle this16142 ^java.lang.Object java-lang-Object16143] (.equals this16142 java-lang-Object16143))) 14 | -------------------------------------------------------------------------------- /src/cljc/java_time/format/sign_style.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.format.sign-style (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time.format SignStyle])) 2 | (def exceeds-pad java.time.format.SignStyle/EXCEEDS_PAD) 3 | (def normal java.time.format.SignStyle/NORMAL) 4 | (def always java.time.format.SignStyle/ALWAYS) 5 | (def never java.time.format.SignStyle/NEVER) 6 | (def not-negative java.time.format.SignStyle/NOT_NEGATIVE) 7 | (clojure.core/defn values {:arglists (quote ([]))} (^"java.lang.Class" [] (java.time.format.SignStyle/values))) 8 | (clojure.core/defn value-of {:arglists (quote (["java.lang.String"] ["java.lang.Class" "java.lang.String"]))} (^java.time.format.SignStyle [^java.lang.String java-lang-String16178] (java.time.format.SignStyle/valueOf java-lang-String16178)) (^java.lang.Enum [^java.lang.Class java-lang-Class16179 ^java.lang.String java-lang-String16180] (java.time.format.SignStyle/valueOf java-lang-Class16179 java-lang-String16180))) 9 | (clojure.core/defn ordinal {:arglists (quote (["java.time.format.SignStyle"]))} (^java.lang.Integer [^java.time.format.SignStyle this16181] (.ordinal this16181))) 10 | (clojure.core/defn to-string {:arglists (quote (["java.time.format.SignStyle"]))} (^java.lang.String [^java.time.format.SignStyle this16182] (.toString this16182))) 11 | (clojure.core/defn name {:arglists (quote (["java.time.format.SignStyle"]))} (^java.lang.String [^java.time.format.SignStyle this16183] (.name this16183))) 12 | (clojure.core/defn get-declaring-class {:arglists (quote (["java.time.format.SignStyle"]))} (^java.lang.Class [^java.time.format.SignStyle this16184] (.getDeclaringClass this16184))) 13 | (clojure.core/defn hash-code {:arglists (quote (["java.time.format.SignStyle"]))} (^java.lang.Integer [^java.time.format.SignStyle this16185] (.hashCode this16185))) 14 | (clojure.core/defn compare-to {:arglists (quote (["java.time.format.SignStyle" "java.lang.Enum"]))} (^java.lang.Integer [^java.time.format.SignStyle this16186 ^java.lang.Enum java-lang-Enum16187] (.compareTo this16186 java-lang-Enum16187))) 15 | (clojure.core/defn equals {:arglists (quote (["java.time.format.SignStyle" "java.lang.Object"]))} (^java.lang.Boolean [^java.time.format.SignStyle this16188 ^java.lang.Object java-lang-Object16189] (.equals this16188 java-lang-Object16189))) 16 | -------------------------------------------------------------------------------- /src/cljc/java_time/format/sign_style.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.format.sign-style (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.format :refer [SignStyle]])) 2 | (def exceeds-pad (goog.object/get java.time.format.SignStyle "EXCEEDS_PAD")) 3 | (def normal (goog.object/get java.time.format.SignStyle "NORMAL")) 4 | (def always (goog.object/get java.time.format.SignStyle "ALWAYS")) 5 | (def never (goog.object/get java.time.format.SignStyle "NEVER")) 6 | (def not-negative (goog.object/get java.time.format.SignStyle "NOT_NEGATIVE")) 7 | (clojure.core/defn values {:arglists (quote ([]))} (^"java.lang.Class" [] (js-invoke java.time.format.SignStyle "values"))) 8 | (clojure.core/defn value-of {:arglists (quote (["java.lang.String"] ["java.lang.Class" "java.lang.String"]))} (^js/JSJoda.SignStyle [^java.lang.String java-lang-String16190] (js-invoke java.time.format.SignStyle "valueOf" java-lang-String16190)) (^java.lang.Enum [^java.lang.Class java-lang-Class16191 ^java.lang.String java-lang-String16192] (js-invoke java.time.format.SignStyle "valueOf" java-lang-Class16191 java-lang-String16192))) 9 | (clojure.core/defn ordinal {:arglists (quote (["java.time.format.SignStyle"]))} (^int [^js/JSJoda.SignStyle this16193] (.ordinal this16193))) 10 | (clojure.core/defn to-string {:arglists (quote (["java.time.format.SignStyle"]))} (^java.lang.String [^js/JSJoda.SignStyle this16194] (.toString this16194))) 11 | (clojure.core/defn name {:arglists (quote (["java.time.format.SignStyle"]))} (^java.lang.String [^js/JSJoda.SignStyle this16195] (.name this16195))) 12 | (clojure.core/defn get-declaring-class {:arglists (quote (["java.time.format.SignStyle"]))} (^java.lang.Class [^js/JSJoda.SignStyle this16196] (.declaringClass this16196))) 13 | (clojure.core/defn hash-code {:arglists (quote (["java.time.format.SignStyle"]))} (^int [^js/JSJoda.SignStyle this16197] (.hashCode this16197))) 14 | (clojure.core/defn compare-to {:arglists (quote (["java.time.format.SignStyle" "java.lang.Enum"]))} (^int [^js/JSJoda.SignStyle this16198 ^java.lang.Enum java-lang-Enum16199] (.compareTo this16198 java-lang-Enum16199))) 15 | (clojure.core/defn equals {:arglists (quote (["java.time.format.SignStyle" "java.lang.Object"]))} (^boolean [^js/JSJoda.SignStyle this16200 ^java.lang.Object java-lang-Object16201] (.equals this16200 java-lang-Object16201))) 16 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/week_fields.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.week-fields (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.temporal :refer [WeekFields]])) 2 | (def sunday-start (goog.object/get java.time.temporal.WeekFields "SUNDAY_START")) 3 | (def iso (goog.object/get java.time.temporal.WeekFields "ISO")) 4 | (def week-based-years (goog.object/get java.time.temporal.WeekFields "WEEK_BASED_YEARS")) 5 | (clojure.core/defn day-of-week {:arglists (quote (["java.time.temporal.WeekFields"]))} (^js/JSJoda.TemporalField [^js/JSJoda.WeekFields this15706] (.dayOfWeek this15706))) 6 | (clojure.core/defn of {:arglists (quote (["java.util.Locale"] ["java.time.DayOfWeek" "int"]))} (^js/JSJoda.WeekFields [^java.util.Locale java-util-Locale15707] (js-invoke java.time.temporal.WeekFields "of" java-util-Locale15707)) (^js/JSJoda.WeekFields [^js/JSJoda.DayOfWeek java-time-DayOfWeek15708 ^int int15709] (js-invoke java.time.temporal.WeekFields "of" java-time-DayOfWeek15708 int15709))) 7 | (clojure.core/defn get-first-day-of-week {:arglists (quote (["java.time.temporal.WeekFields"]))} (^js/JSJoda.DayOfWeek [^js/JSJoda.WeekFields this15710] (.firstDayOfWeek this15710))) 8 | (clojure.core/defn to-string {:arglists (quote (["java.time.temporal.WeekFields"]))} (^java.lang.String [^js/JSJoda.WeekFields this15711] (.toString this15711))) 9 | (clojure.core/defn week-based-year {:arglists (quote (["java.time.temporal.WeekFields"]))} (^js/JSJoda.TemporalField [^js/JSJoda.WeekFields this15712] (.weekBasedYear this15712))) 10 | (clojure.core/defn week-of-year {:arglists (quote (["java.time.temporal.WeekFields"]))} (^js/JSJoda.TemporalField [^js/JSJoda.WeekFields this15713] (.weekOfYear this15713))) 11 | (clojure.core/defn week-of-week-based-year {:arglists (quote (["java.time.temporal.WeekFields"]))} (^js/JSJoda.TemporalField [^js/JSJoda.WeekFields this15714] (.weekOfWeekBasedYear this15714))) 12 | (clojure.core/defn week-of-month {:arglists (quote (["java.time.temporal.WeekFields"]))} (^js/JSJoda.TemporalField [^js/JSJoda.WeekFields this15715] (.weekOfMonth this15715))) 13 | (clojure.core/defn hash-code {:arglists (quote (["java.time.temporal.WeekFields"]))} (^int [^js/JSJoda.WeekFields this15716] (.hashCode this15716))) 14 | (clojure.core/defn get-minimal-days-in-first-week {:arglists (quote (["java.time.temporal.WeekFields"]))} (^int [^js/JSJoda.WeekFields this15717] (.minimalDaysInFirstWeek this15717))) 15 | (clojure.core/defn equals {:arglists (quote (["java.time.temporal.WeekFields" "java.lang.Object"]))} (^boolean [^js/JSJoda.WeekFields this15718 ^java.lang.Object java-lang-Object15719] (.equals this15718 java-lang-Object15719))) 16 | -------------------------------------------------------------------------------- /src/cljc/java_time/zone_id.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.zone-id (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time ZoneId])) 2 | (def short-ids java.time.ZoneId/SHORT_IDS) 3 | (clojure.core/defn get-available-zone-ids {:arglists (quote ([]))} (^java.util.Set [] (java.time.ZoneId/getAvailableZoneIds))) 4 | (clojure.core/defn of {:arglists (quote (["java.lang.String" "java.util.Map"] ["java.lang.String"]))} (^java.time.ZoneId [^java.lang.String java-lang-String14472 ^java.util.Map java-util-Map14473] (java.time.ZoneId/of java-lang-String14472 java-util-Map14473)) (^java.time.ZoneId [^java.lang.String java-lang-String14474] (java.time.ZoneId/of java-lang-String14474))) 5 | (clojure.core/defn of-offset {:arglists (quote (["java.lang.String" "java.time.ZoneOffset"]))} (^java.time.ZoneId [^java.lang.String java-lang-String14475 ^java.time.ZoneOffset java-time-ZoneOffset14476] (java.time.ZoneId/ofOffset java-lang-String14475 java-time-ZoneOffset14476))) 6 | (clojure.core/defn to-string {:arglists (quote (["java.time.ZoneId"]))} (^java.lang.String [^java.time.ZoneId this14477] (.toString this14477))) 7 | (clojure.core/defn get-display-name {:arglists (quote (["java.time.ZoneId" "java.time.format.TextStyle" "java.util.Locale"]))} (^java.lang.String [^java.time.ZoneId this14478 ^java.time.format.TextStyle java-time-format-TextStyle14479 ^java.util.Locale java-util-Locale14480] (.getDisplayName this14478 java-time-format-TextStyle14479 java-util-Locale14480))) 8 | (clojure.core/defn get-rules {:arglists (quote (["java.time.ZoneId"]))} (^java.time.zone.ZoneRules [^java.time.ZoneId this14481] (.getRules this14481))) 9 | (clojure.core/defn get-id {:arglists (quote (["java.time.ZoneId"]))} (^java.lang.String [^java.time.ZoneId this14482] (.getId this14482))) 10 | (clojure.core/defn normalized {:arglists (quote (["java.time.ZoneId"]))} (^java.time.ZoneId [^java.time.ZoneId this14483] (.normalized this14483))) 11 | (clojure.core/defn system-default {:arglists (quote ([]))} (^java.time.ZoneId [] (java.time.ZoneId/systemDefault))) 12 | (clojure.core/defn from {:arglists (quote (["java.time.temporal.TemporalAccessor"]))} (^java.time.ZoneId [^java.time.temporal.TemporalAccessor java-time-temporal-TemporalAccessor14484] (java.time.ZoneId/from java-time-temporal-TemporalAccessor14484))) 13 | (clojure.core/defn hash-code {:arglists (quote (["java.time.ZoneId"]))} (^java.lang.Integer [^java.time.ZoneId this14485] (.hashCode this14485))) 14 | (clojure.core/defn equals {:arglists (quote (["java.time.ZoneId" "java.lang.Object"]))} (^java.lang.Boolean [^java.time.ZoneId this14486 ^java.lang.Object java-lang-Object14487] (.equals this14486 java-lang-Object14487))) 15 | -------------------------------------------------------------------------------- /src/cljc/java_time/zone_id.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.zone-id (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time :refer [ZoneId]])) 2 | (def short-ids (goog.object/get java.time.ZoneId "SHORT_IDS")) 3 | (clojure.core/defn get-available-zone-ids {:arglists (quote ([]))} (^java.util.Set [] (js-invoke java.time.ZoneId "getAvailableZoneIds"))) 4 | (clojure.core/defn of {:arglists (quote (["java.lang.String" "java.util.Map"] ["java.lang.String"]))} (^js/JSJoda.ZoneId [^java.lang.String java-lang-String14488 ^java.util.Map java-util-Map14489] (js-invoke java.time.ZoneId "of" java-lang-String14488 java-util-Map14489)) (^js/JSJoda.ZoneId [^java.lang.String java-lang-String14490] (js-invoke java.time.ZoneId "of" java-lang-String14490))) 5 | (clojure.core/defn of-offset {:arglists (quote (["java.lang.String" "java.time.ZoneOffset"]))} (^js/JSJoda.ZoneId [^java.lang.String java-lang-String14491 ^js/JSJoda.ZoneOffset java-time-ZoneOffset14492] (js-invoke java.time.ZoneId "ofOffset" java-lang-String14491 java-time-ZoneOffset14492))) 6 | (clojure.core/defn to-string {:arglists (quote (["java.time.ZoneId"]))} (^java.lang.String [^js/JSJoda.ZoneId this14493] (.toString this14493))) 7 | (clojure.core/defn get-display-name {:arglists (quote (["java.time.ZoneId" "java.time.format.TextStyle" "java.util.Locale"]))} (^java.lang.String [^js/JSJoda.ZoneId this14494 ^js/JSJoda.TextStyle java-time-format-TextStyle14495 ^java.util.Locale java-util-Locale14496] (.displayName this14494 java-time-format-TextStyle14495 java-util-Locale14496))) 8 | (clojure.core/defn get-rules {:arglists (quote (["java.time.ZoneId"]))} (^js/JSJoda.ZoneRules [^js/JSJoda.ZoneId this14497] (.rules this14497))) 9 | (clojure.core/defn get-id {:arglists (quote (["java.time.ZoneId"]))} (^java.lang.String [^js/JSJoda.ZoneId this14498] (.id this14498))) 10 | (clojure.core/defn normalized {:arglists (quote (["java.time.ZoneId"]))} (^js/JSJoda.ZoneId [^js/JSJoda.ZoneId this14499] (.normalized this14499))) 11 | (clojure.core/defn system-default {:arglists (quote ([]))} (^js/JSJoda.ZoneId [] (js-invoke java.time.ZoneId "systemDefault"))) 12 | (clojure.core/defn from {:arglists (quote (["java.time.temporal.TemporalAccessor"]))} (^js/JSJoda.ZoneId [^js/JSJoda.TemporalAccessor java-time-temporal-TemporalAccessor14500] (js-invoke java.time.ZoneId "from" java-time-temporal-TemporalAccessor14500))) 13 | (clojure.core/defn hash-code {:arglists (quote (["java.time.ZoneId"]))} (^int [^js/JSJoda.ZoneId this14501] (.hashCode this14501))) 14 | (clojure.core/defn equals {:arglists (quote (["java.time.ZoneId" "java.lang.Object"]))} (^boolean [^js/JSJoda.ZoneId this14502 ^java.lang.Object java-lang-Object14503] (.equals this14502 java-lang-Object14503))) 15 | -------------------------------------------------------------------------------- /src/cljc/java_time/clock.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.clock (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time Clock])) 2 | (clojure.core/defn tick {:arglists (quote (["java.time.Clock" "java.time.Duration"]))} (^java.time.Clock [^java.time.Clock java-time-Clock15370 ^java.time.Duration java-time-Duration15371] (java.time.Clock/tick java-time-Clock15370 java-time-Duration15371))) 3 | (clojure.core/defn offset {:arglists (quote (["java.time.Clock" "java.time.Duration"]))} (^java.time.Clock [^java.time.Clock java-time-Clock15372 ^java.time.Duration java-time-Duration15373] (java.time.Clock/offset java-time-Clock15372 java-time-Duration15373))) 4 | (clojure.core/defn system-utc {:arglists (quote ([]))} (^java.time.Clock [] (java.time.Clock/systemUTC))) 5 | (clojure.core/defn system-default-zone {:arglists (quote ([]))} (^java.time.Clock [] (java.time.Clock/systemDefaultZone))) 6 | (clojure.core/defn fixed {:arglists (quote (["java.time.Instant" "java.time.ZoneId"]))} (^java.time.Clock [^java.time.Instant java-time-Instant15374 ^java.time.ZoneId java-time-ZoneId15375] (java.time.Clock/fixed java-time-Instant15374 java-time-ZoneId15375))) 7 | (clojure.core/defn tick-minutes {:arglists (quote (["java.time.ZoneId"]))} (^java.time.Clock [^java.time.ZoneId java-time-ZoneId15376] (java.time.Clock/tickMinutes java-time-ZoneId15376))) 8 | (clojure.core/defn tick-seconds {:arglists (quote (["java.time.ZoneId"]))} (^java.time.Clock [^java.time.ZoneId java-time-ZoneId15377] (java.time.Clock/tickSeconds java-time-ZoneId15377))) 9 | (clojure.core/defn millis {:arglists (quote (["java.time.Clock"]))} (^long [^java.time.Clock this15378] (.millis this15378))) 10 | (clojure.core/defn with-zone {:arglists (quote (["java.time.Clock" "java.time.ZoneId"]))} (^java.time.Clock [^java.time.Clock this15379 ^java.time.ZoneId java-time-ZoneId15380] (.withZone this15379 java-time-ZoneId15380))) 11 | (clojure.core/defn get-zone {:arglists (quote (["java.time.Clock"]))} (^java.time.ZoneId [^java.time.Clock this15381] (.getZone this15381))) 12 | (clojure.core/defn hash-code {:arglists (quote (["java.time.Clock"]))} (^java.lang.Integer [^java.time.Clock this15382] (.hashCode this15382))) 13 | (clojure.core/defn system {:arglists (quote (["java.time.ZoneId"]))} (^java.time.Clock [^java.time.ZoneId java-time-ZoneId15383] (java.time.Clock/system java-time-ZoneId15383))) 14 | (clojure.core/defn instant {:arglists (quote (["java.time.Clock"]))} (^java.time.Instant [^java.time.Clock this15384] (.instant this15384))) 15 | (clojure.core/defn equals {:arglists (quote (["java.time.Clock" "java.lang.Object"]))} (^java.lang.Boolean [^java.time.Clock this15385 ^java.lang.Object java-lang-Object15386] (.equals this15385 java-lang-Object15386))) 16 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/week_fields.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.week-fields (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time.temporal WeekFields])) 2 | (def sunday-start java.time.temporal.WeekFields/SUNDAY_START) 3 | (def iso java.time.temporal.WeekFields/ISO) 4 | (def week-based-years java.time.temporal.WeekFields/WEEK_BASED_YEARS) 5 | (clojure.core/defn day-of-week {:arglists (quote (["java.time.temporal.WeekFields"]))} (^java.time.temporal.TemporalField [^java.time.temporal.WeekFields this15692] (.dayOfWeek this15692))) 6 | (clojure.core/defn of {:arglists (quote (["java.util.Locale"] ["java.time.DayOfWeek" "int"]))} (^java.time.temporal.WeekFields [^java.util.Locale java-util-Locale15693] (java.time.temporal.WeekFields/of java-util-Locale15693)) (^java.time.temporal.WeekFields [^java.time.DayOfWeek java-time-DayOfWeek15694 ^java.lang.Integer int15695] (java.time.temporal.WeekFields/of java-time-DayOfWeek15694 int15695))) 7 | (clojure.core/defn get-first-day-of-week {:arglists (quote (["java.time.temporal.WeekFields"]))} (^java.time.DayOfWeek [^java.time.temporal.WeekFields this15696] (.getFirstDayOfWeek this15696))) 8 | (clojure.core/defn to-string {:arglists (quote (["java.time.temporal.WeekFields"]))} (^java.lang.String [^java.time.temporal.WeekFields this15697] (.toString this15697))) 9 | (clojure.core/defn week-based-year {:arglists (quote (["java.time.temporal.WeekFields"]))} (^java.time.temporal.TemporalField [^java.time.temporal.WeekFields this15698] (.weekBasedYear this15698))) 10 | (clojure.core/defn week-of-year {:arglists (quote (["java.time.temporal.WeekFields"]))} (^java.time.temporal.TemporalField [^java.time.temporal.WeekFields this15699] (.weekOfYear this15699))) 11 | (clojure.core/defn week-of-week-based-year {:arglists (quote (["java.time.temporal.WeekFields"]))} (^java.time.temporal.TemporalField [^java.time.temporal.WeekFields this15700] (.weekOfWeekBasedYear this15700))) 12 | (clojure.core/defn week-of-month {:arglists (quote (["java.time.temporal.WeekFields"]))} (^java.time.temporal.TemporalField [^java.time.temporal.WeekFields this15701] (.weekOfMonth this15701))) 13 | (clojure.core/defn hash-code {:arglists (quote (["java.time.temporal.WeekFields"]))} (^java.lang.Integer [^java.time.temporal.WeekFields this15702] (.hashCode this15702))) 14 | (clojure.core/defn get-minimal-days-in-first-week {:arglists (quote (["java.time.temporal.WeekFields"]))} (^java.lang.Integer [^java.time.temporal.WeekFields this15703] (.getMinimalDaysInFirstWeek this15703))) 15 | (clojure.core/defn equals {:arglists (quote (["java.time.temporal.WeekFields" "java.lang.Object"]))} (^java.lang.Boolean [^java.time.temporal.WeekFields this15704 ^java.lang.Object java-lang-Object15705] (.equals this15704 java-lang-Object15705))) 16 | -------------------------------------------------------------------------------- /src/cljc/java_time/clock.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.clock (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time :refer [Clock]])) 2 | (clojure.core/defn tick {:arglists (quote (["java.time.Clock" "java.time.Duration"]))} (^js/JSJoda.Clock [^js/JSJoda.Clock java-time-Clock15387 ^js/JSJoda.Duration java-time-Duration15388] (js-invoke java.time.Clock "tick" java-time-Clock15387 java-time-Duration15388))) 3 | (clojure.core/defn offset {:arglists (quote (["java.time.Clock" "java.time.Duration"]))} (^js/JSJoda.Clock [^js/JSJoda.Clock java-time-Clock15389 ^js/JSJoda.Duration java-time-Duration15390] (js-invoke java.time.Clock "offset" java-time-Clock15389 java-time-Duration15390))) 4 | (clojure.core/defn system-utc {:arglists (quote ([]))} (^js/JSJoda.Clock [] (js-invoke java.time.Clock "systemUTC"))) 5 | (clojure.core/defn system-default-zone {:arglists (quote ([]))} (^js/JSJoda.Clock [] (js-invoke java.time.Clock "systemDefaultZone"))) 6 | (clojure.core/defn fixed {:arglists (quote (["java.time.Instant" "java.time.ZoneId"]))} (^js/JSJoda.Clock [^js/JSJoda.Instant java-time-Instant15391 ^js/JSJoda.ZoneId java-time-ZoneId15392] (js-invoke java.time.Clock "fixed" java-time-Instant15391 java-time-ZoneId15392))) 7 | (clojure.core/defn tick-minutes {:arglists (quote (["java.time.ZoneId"]))} (^js/JSJoda.Clock [^js/JSJoda.ZoneId java-time-ZoneId15393] (js-invoke java.time.Clock "tickMinutes" java-time-ZoneId15393))) 8 | (clojure.core/defn tick-seconds {:arglists (quote (["java.time.ZoneId"]))} (^js/JSJoda.Clock [^js/JSJoda.ZoneId java-time-ZoneId15394] (js-invoke java.time.Clock "tickSeconds" java-time-ZoneId15394))) 9 | (clojure.core/defn millis {:arglists (quote (["java.time.Clock"]))} (^long [^js/JSJoda.Clock this15395] (.millis this15395))) 10 | (clojure.core/defn with-zone {:arglists (quote (["java.time.Clock" "java.time.ZoneId"]))} (^js/JSJoda.Clock [^js/JSJoda.Clock this15396 ^js/JSJoda.ZoneId java-time-ZoneId15397] (.withZone this15396 java-time-ZoneId15397))) 11 | (clojure.core/defn get-zone {:arglists (quote (["java.time.Clock"]))} (^js/JSJoda.ZoneId [^js/JSJoda.Clock this15398] (.zone this15398))) 12 | (clojure.core/defn hash-code {:arglists (quote (["java.time.Clock"]))} (^int [^js/JSJoda.Clock this15399] (.hashCode this15399))) 13 | (clojure.core/defn system {:arglists (quote (["java.time.ZoneId"]))} (^js/JSJoda.Clock [^js/JSJoda.ZoneId java-time-ZoneId15400] (js-invoke java.time.Clock "system" java-time-ZoneId15400))) 14 | (clojure.core/defn instant {:arglists (quote (["java.time.Clock"]))} (^js/JSJoda.Instant [^js/JSJoda.Clock this15401] (.instant this15401))) 15 | (clojure.core/defn equals {:arglists (quote (["java.time.Clock" "java.lang.Object"]))} (^boolean [^js/JSJoda.Clock this15402 ^java.lang.Object java-lang-Object15403] (.equals this15402 java-lang-Object15403))) 16 | -------------------------------------------------------------------------------- /src/cljc/java_time/format/decimal_style.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.format.decimal-style (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.format :refer [DecimalStyle]])) 2 | (def standard (goog.object/get java.time.format.DecimalStyle "STANDARD")) 3 | (clojure.core/defn with-decimal-separator {:arglists (quote (["java.time.format.DecimalStyle" "char"]))} (^js/JSJoda.DecimalStyle [^js/JSJoda.DecimalStyle this16161 ^char char16162] (.withDecimalSeparator this16161 char16162))) 4 | (clojure.core/defn of {:arglists (quote (["java.util.Locale"]))} (^js/JSJoda.DecimalStyle [^java.util.Locale java-util-Locale16163] (js-invoke java.time.format.DecimalStyle "of" java-util-Locale16163))) 5 | (clojure.core/defn with-positive-sign {:arglists (quote (["java.time.format.DecimalStyle" "char"]))} (^js/JSJoda.DecimalStyle [^js/JSJoda.DecimalStyle this16164 ^char char16165] (.withPositiveSign this16164 char16165))) 6 | (clojure.core/defn get-decimal-separator {:arglists (quote (["java.time.format.DecimalStyle"]))} (^char [^js/JSJoda.DecimalStyle this16166] (.decimalSeparator this16166))) 7 | (clojure.core/defn of-default-locale {:arglists (quote ([]))} (^js/JSJoda.DecimalStyle [] (js-invoke java.time.format.DecimalStyle "ofDefaultLocale"))) 8 | (clojure.core/defn with-zero-digit {:arglists (quote (["java.time.format.DecimalStyle" "char"]))} (^js/JSJoda.DecimalStyle [^js/JSJoda.DecimalStyle this16167 ^char char16168] (.withZeroDigit this16167 char16168))) 9 | (clojure.core/defn to-string {:arglists (quote (["java.time.format.DecimalStyle"]))} (^java.lang.String [^js/JSJoda.DecimalStyle this16169] (.toString this16169))) 10 | (clojure.core/defn get-zero-digit {:arglists (quote (["java.time.format.DecimalStyle"]))} (^char [^js/JSJoda.DecimalStyle this16170] (.zeroDigit this16170))) 11 | (clojure.core/defn with-negative-sign {:arglists (quote (["java.time.format.DecimalStyle" "char"]))} (^js/JSJoda.DecimalStyle [^js/JSJoda.DecimalStyle this16171 ^char char16172] (.withNegativeSign this16171 char16172))) 12 | (clojure.core/defn get-available-locales {:arglists (quote ([]))} (^java.util.Set [] (js-invoke java.time.format.DecimalStyle "getAvailableLocales"))) 13 | (clojure.core/defn get-positive-sign {:arglists (quote (["java.time.format.DecimalStyle"]))} (^char [^js/JSJoda.DecimalStyle this16173] (.positiveSign this16173))) 14 | (clojure.core/defn hash-code {:arglists (quote (["java.time.format.DecimalStyle"]))} (^int [^js/JSJoda.DecimalStyle this16174] (.hashCode this16174))) 15 | (clojure.core/defn get-negative-sign {:arglists (quote (["java.time.format.DecimalStyle"]))} (^char [^js/JSJoda.DecimalStyle this16175] (.negativeSign this16175))) 16 | (clojure.core/defn equals {:arglists (quote (["java.time.format.DecimalStyle" "java.lang.Object"]))} (^boolean [^js/JSJoda.DecimalStyle this16176 ^java.lang.Object java-lang-Object16177] (.equals this16176 java-lang-Object16177))) 17 | -------------------------------------------------------------------------------- /src/cljc/java_time/extn/predicates.cljc: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.extn.predicates 2 | #?(:cljs (:require [java.time :refer [Clock 3 | DayOfWeek 4 | Duration 5 | Instant 6 | LocalDate 7 | LocalDateTime 8 | LocalTime 9 | Month 10 | MonthDay 11 | OffsetDateTime 12 | OffsetTime 13 | Period 14 | Year 15 | YearMonth 16 | ZoneId 17 | ZoneOffset 18 | ZonedDateTime]])) 19 | 20 | #?(:clj (:import [java.time Clock 21 | DayOfWeek 22 | Duration 23 | Instant 24 | LocalDate 25 | LocalDateTime 26 | LocalTime 27 | Month 28 | MonthDay 29 | OffsetDateTime 30 | OffsetTime 31 | Period 32 | Year 33 | YearMonth 34 | ZoneId 35 | ZoneOffset 36 | ZonedDateTime]))) 37 | 38 | 39 | (defn clock? [v] (instance? Clock v)) 40 | (defn day-of-week? [v] (instance? DayOfWeek v)) 41 | (defn duration? [v] (instance? Duration v)) 42 | (defn instant? [v] (instance? Instant v)) 43 | (defn local-date? [v] (instance? LocalDate v)) 44 | (defn local-date-time? [v] (instance? LocalDateTime v)) 45 | (defn local-time? [v] (instance? LocalTime v)) 46 | (defn month? [v] (instance? Month v)) 47 | (defn month-day? [v] (instance? MonthDay v)) 48 | (defn offset-date-time? [v] (instance? OffsetDateTime v)) 49 | (defn offset-time? [v] (instance? OffsetTime v)) 50 | (defn period? [v] (instance? Period v)) 51 | (defn year? [v] (instance? Year v)) 52 | (defn year-month? [v] (instance? YearMonth v)) 53 | (defn zone-id? [v] (instance? ZoneId v)) 54 | (defn zone-offset? [v] (instance? ZoneOffset v)) 55 | (defn zoned-date-time? [v] (instance? ZonedDateTime v)) 56 | 57 | ;; Since all date, date-time and time instances are local, 58 | ;; provide aliases for them without the local prefix 59 | (def date? local-date?) 60 | (def date-time? local-date-time?) 61 | (def time? local-time?) 62 | -------------------------------------------------------------------------------- /src/cljc/java_time/format/text_style.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.format.text-style (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time.format TextStyle])) 2 | (def short java.time.format.TextStyle/SHORT) 3 | (def full-standalone java.time.format.TextStyle/FULL_STANDALONE) 4 | (def full java.time.format.TextStyle/FULL) 5 | (def short-standalone java.time.format.TextStyle/SHORT_STANDALONE) 6 | (def narrow java.time.format.TextStyle/NARROW) 7 | (def narrow-standalone java.time.format.TextStyle/NARROW_STANDALONE) 8 | (clojure.core/defn values {:arglists (quote ([]))} (^"java.lang.Class" [] (java.time.format.TextStyle/values))) 9 | (clojure.core/defn value-of {:arglists (quote (["java.lang.String"] ["java.lang.Class" "java.lang.String"]))} (^java.time.format.TextStyle [^java.lang.String java-lang-String16202] (java.time.format.TextStyle/valueOf java-lang-String16202)) (^java.lang.Enum [^java.lang.Class java-lang-Class16203 ^java.lang.String java-lang-String16204] (java.time.format.TextStyle/valueOf java-lang-Class16203 java-lang-String16204))) 10 | (clojure.core/defn ordinal {:arglists (quote (["java.time.format.TextStyle"]))} (^java.lang.Integer [^java.time.format.TextStyle this16205] (.ordinal this16205))) 11 | (clojure.core/defn as-standalone {:arglists (quote (["java.time.format.TextStyle"]))} (^java.time.format.TextStyle [^java.time.format.TextStyle this16206] (.asStandalone this16206))) 12 | (clojure.core/defn to-string {:arglists (quote (["java.time.format.TextStyle"]))} (^java.lang.String [^java.time.format.TextStyle this16207] (.toString this16207))) 13 | (clojure.core/defn name {:arglists (quote (["java.time.format.TextStyle"]))} (^java.lang.String [^java.time.format.TextStyle this16208] (.name this16208))) 14 | (clojure.core/defn get-declaring-class {:arglists (quote (["java.time.format.TextStyle"]))} (^java.lang.Class [^java.time.format.TextStyle this16209] (.getDeclaringClass this16209))) 15 | (clojure.core/defn as-normal {:arglists (quote (["java.time.format.TextStyle"]))} (^java.time.format.TextStyle [^java.time.format.TextStyle this16210] (.asNormal this16210))) 16 | (clojure.core/defn hash-code {:arglists (quote (["java.time.format.TextStyle"]))} (^java.lang.Integer [^java.time.format.TextStyle this16211] (.hashCode this16211))) 17 | (clojure.core/defn compare-to {:arglists (quote (["java.time.format.TextStyle" "java.lang.Enum"]))} (^java.lang.Integer [^java.time.format.TextStyle this16212 ^java.lang.Enum java-lang-Enum16213] (.compareTo this16212 java-lang-Enum16213))) 18 | (clojure.core/defn is-standalone {:arglists (quote (["java.time.format.TextStyle"]))} (^java.lang.Boolean [^java.time.format.TextStyle this16214] (.isStandalone this16214))) 19 | (clojure.core/defn equals {:arglists (quote (["java.time.format.TextStyle" "java.lang.Object"]))} (^java.lang.Boolean [^java.time.format.TextStyle this16215 ^java.lang.Object java-lang-Object16216] (.equals this16215 java-lang-Object16216))) 20 | -------------------------------------------------------------------------------- /src/cljc/java_time/format/text_style.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.format.text-style (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.format :refer [TextStyle]])) 2 | (def short (goog.object/get java.time.format.TextStyle "SHORT")) 3 | (def full-standalone (goog.object/get java.time.format.TextStyle "FULL_STANDALONE")) 4 | (def full (goog.object/get java.time.format.TextStyle "FULL")) 5 | (def short-standalone (goog.object/get java.time.format.TextStyle "SHORT_STANDALONE")) 6 | (def narrow (goog.object/get java.time.format.TextStyle "NARROW")) 7 | (def narrow-standalone (goog.object/get java.time.format.TextStyle "NARROW_STANDALONE")) 8 | (clojure.core/defn values {:arglists (quote ([]))} (^"java.lang.Class" [] (js-invoke java.time.format.TextStyle "values"))) 9 | (clojure.core/defn value-of {:arglists (quote (["java.lang.String"] ["java.lang.Class" "java.lang.String"]))} (^js/JSJoda.TextStyle [^java.lang.String java-lang-String16217] (js-invoke java.time.format.TextStyle "valueOf" java-lang-String16217)) (^java.lang.Enum [^java.lang.Class java-lang-Class16218 ^java.lang.String java-lang-String16219] (js-invoke java.time.format.TextStyle "valueOf" java-lang-Class16218 java-lang-String16219))) 10 | (clojure.core/defn ordinal {:arglists (quote (["java.time.format.TextStyle"]))} (^int [^js/JSJoda.TextStyle this16220] (.ordinal this16220))) 11 | (clojure.core/defn as-standalone {:arglists (quote (["java.time.format.TextStyle"]))} (^js/JSJoda.TextStyle [^js/JSJoda.TextStyle this16221] (.asStandalone this16221))) 12 | (clojure.core/defn to-string {:arglists (quote (["java.time.format.TextStyle"]))} (^java.lang.String [^js/JSJoda.TextStyle this16222] (.toString this16222))) 13 | (clojure.core/defn name {:arglists (quote (["java.time.format.TextStyle"]))} (^java.lang.String [^js/JSJoda.TextStyle this16223] (.name this16223))) 14 | (clojure.core/defn get-declaring-class {:arglists (quote (["java.time.format.TextStyle"]))} (^java.lang.Class [^js/JSJoda.TextStyle this16224] (.declaringClass this16224))) 15 | (clojure.core/defn as-normal {:arglists (quote (["java.time.format.TextStyle"]))} (^js/JSJoda.TextStyle [^js/JSJoda.TextStyle this16225] (.asNormal this16225))) 16 | (clojure.core/defn hash-code {:arglists (quote (["java.time.format.TextStyle"]))} (^int [^js/JSJoda.TextStyle this16226] (.hashCode this16226))) 17 | (clojure.core/defn compare-to {:arglists (quote (["java.time.format.TextStyle" "java.lang.Enum"]))} (^int [^js/JSJoda.TextStyle this16227 ^java.lang.Enum java-lang-Enum16228] (.compareTo this16227 java-lang-Enum16228))) 18 | (clojure.core/defn is-standalone {:arglists (quote (["java.time.format.TextStyle"]))} (^boolean [^js/JSJoda.TextStyle this16229] (.isStandalone this16229))) 19 | (clojure.core/defn equals {:arglists (quote (["java.time.format.TextStyle" "java.lang.Object"]))} (^boolean [^js/JSJoda.TextStyle this16230 ^java.lang.Object java-lang-Object16231] (.equals this16230 java-lang-Object16231))) 20 | -------------------------------------------------------------------------------- /src/cljc/java_time/format/decimal_style.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.format.decimal-style (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time.format DecimalStyle])) 2 | (def standard java.time.format.DecimalStyle/STANDARD) 3 | (clojure.core/defn with-decimal-separator {:arglists (quote (["java.time.format.DecimalStyle" "char"]))} (^java.time.format.DecimalStyle [^java.time.format.DecimalStyle this16144 ^java.lang.Character char16145] (.withDecimalSeparator this16144 char16145))) 4 | (clojure.core/defn of {:arglists (quote (["java.util.Locale"]))} (^java.time.format.DecimalStyle [^java.util.Locale java-util-Locale16146] (java.time.format.DecimalStyle/of java-util-Locale16146))) 5 | (clojure.core/defn with-positive-sign {:arglists (quote (["java.time.format.DecimalStyle" "char"]))} (^java.time.format.DecimalStyle [^java.time.format.DecimalStyle this16147 ^java.lang.Character char16148] (.withPositiveSign this16147 char16148))) 6 | (clojure.core/defn get-decimal-separator {:arglists (quote (["java.time.format.DecimalStyle"]))} (^java.lang.Character [^java.time.format.DecimalStyle this16149] (.getDecimalSeparator this16149))) 7 | (clojure.core/defn of-default-locale {:arglists (quote ([]))} (^java.time.format.DecimalStyle [] (java.time.format.DecimalStyle/ofDefaultLocale))) 8 | (clojure.core/defn with-zero-digit {:arglists (quote (["java.time.format.DecimalStyle" "char"]))} (^java.time.format.DecimalStyle [^java.time.format.DecimalStyle this16150 ^java.lang.Character char16151] (.withZeroDigit this16150 char16151))) 9 | (clojure.core/defn to-string {:arglists (quote (["java.time.format.DecimalStyle"]))} (^java.lang.String [^java.time.format.DecimalStyle this16152] (.toString this16152))) 10 | (clojure.core/defn get-zero-digit {:arglists (quote (["java.time.format.DecimalStyle"]))} (^java.lang.Character [^java.time.format.DecimalStyle this16153] (.getZeroDigit this16153))) 11 | (clojure.core/defn with-negative-sign {:arglists (quote (["java.time.format.DecimalStyle" "char"]))} (^java.time.format.DecimalStyle [^java.time.format.DecimalStyle this16154 ^java.lang.Character char16155] (.withNegativeSign this16154 char16155))) 12 | (clojure.core/defn get-available-locales {:arglists (quote ([]))} (^java.util.Set [] (java.time.format.DecimalStyle/getAvailableLocales))) 13 | (clojure.core/defn get-positive-sign {:arglists (quote (["java.time.format.DecimalStyle"]))} (^java.lang.Character [^java.time.format.DecimalStyle this16156] (.getPositiveSign this16156))) 14 | (clojure.core/defn hash-code {:arglists (quote (["java.time.format.DecimalStyle"]))} (^java.lang.Integer [^java.time.format.DecimalStyle this16157] (.hashCode this16157))) 15 | (clojure.core/defn get-negative-sign {:arglists (quote (["java.time.format.DecimalStyle"]))} (^java.lang.Character [^java.time.format.DecimalStyle this16158] (.getNegativeSign this16158))) 16 | (clojure.core/defn equals {:arglists (quote (["java.time.format.DecimalStyle" "java.lang.Object"]))} (^java.lang.Boolean [^java.time.format.DecimalStyle this16159 ^java.lang.Object java-lang-Object16160] (.equals this16159 java-lang-Object16160))) 17 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/temporal_adjusters.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.temporal-adjusters (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time.temporal TemporalAdjusters])) 2 | (clojure.core/defn next {:arglists (quote (["java.time.DayOfWeek"]))} (^java.time.temporal.TemporalAdjuster [^java.time.DayOfWeek java-time-DayOfWeek15484] (java.time.temporal.TemporalAdjusters/next java-time-DayOfWeek15484))) 3 | (clojure.core/defn next-or-same {:arglists (quote (["java.time.DayOfWeek"]))} (^java.time.temporal.TemporalAdjuster [^java.time.DayOfWeek java-time-DayOfWeek15485] (java.time.temporal.TemporalAdjusters/nextOrSame java-time-DayOfWeek15485))) 4 | (clojure.core/defn first-day-of-next-month {:arglists (quote ([]))} (^java.time.temporal.TemporalAdjuster [] (java.time.temporal.TemporalAdjusters/firstDayOfNextMonth))) 5 | (clojure.core/defn first-day-of-month {:arglists (quote ([]))} (^java.time.temporal.TemporalAdjuster [] (java.time.temporal.TemporalAdjusters/firstDayOfMonth))) 6 | (clojure.core/defn first-day-of-year {:arglists (quote ([]))} (^java.time.temporal.TemporalAdjuster [] (java.time.temporal.TemporalAdjusters/firstDayOfYear))) 7 | (clojure.core/defn of-date-adjuster {:arglists (quote (["java.util.function.UnaryOperator"]))} (^java.time.temporal.TemporalAdjuster [^java.util.function.UnaryOperator java-util-function-UnaryOperator15486] (java.time.temporal.TemporalAdjusters/ofDateAdjuster java-util-function-UnaryOperator15486))) 8 | (clojure.core/defn last-day-of-year {:arglists (quote ([]))} (^java.time.temporal.TemporalAdjuster [] (java.time.temporal.TemporalAdjusters/lastDayOfYear))) 9 | (clojure.core/defn first-in-month {:arglists (quote (["java.time.DayOfWeek"]))} (^java.time.temporal.TemporalAdjuster [^java.time.DayOfWeek java-time-DayOfWeek15487] (java.time.temporal.TemporalAdjusters/firstInMonth java-time-DayOfWeek15487))) 10 | (clojure.core/defn previous-or-same {:arglists (quote (["java.time.DayOfWeek"]))} (^java.time.temporal.TemporalAdjuster [^java.time.DayOfWeek java-time-DayOfWeek15488] (java.time.temporal.TemporalAdjusters/previousOrSame java-time-DayOfWeek15488))) 11 | (clojure.core/defn previous {:arglists (quote (["java.time.DayOfWeek"]))} (^java.time.temporal.TemporalAdjuster [^java.time.DayOfWeek java-time-DayOfWeek15489] (java.time.temporal.TemporalAdjusters/previous java-time-DayOfWeek15489))) 12 | (clojure.core/defn last-day-of-month {:arglists (quote ([]))} (^java.time.temporal.TemporalAdjuster [] (java.time.temporal.TemporalAdjusters/lastDayOfMonth))) 13 | (clojure.core/defn last-in-month {:arglists (quote (["java.time.DayOfWeek"]))} (^java.time.temporal.TemporalAdjuster [^java.time.DayOfWeek java-time-DayOfWeek15490] (java.time.temporal.TemporalAdjusters/lastInMonth java-time-DayOfWeek15490))) 14 | (clojure.core/defn first-day-of-next-year {:arglists (quote ([]))} (^java.time.temporal.TemporalAdjuster [] (java.time.temporal.TemporalAdjusters/firstDayOfNextYear))) 15 | (clojure.core/defn day-of-week-in-month {:arglists (quote (["int" "java.time.DayOfWeek"]))} (^java.time.temporal.TemporalAdjuster [^java.lang.Integer int15491 ^java.time.DayOfWeek java-time-DayOfWeek15492] (java.time.temporal.TemporalAdjusters/dayOfWeekInMonth int15491 java-time-DayOfWeek15492))) 16 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/temporal_adjusters.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.temporal-adjusters (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.temporal :refer [TemporalAdjusters]])) 2 | (clojure.core/defn next {:arglists (quote (["java.time.DayOfWeek"]))} (^js/JSJoda.TemporalAdjuster [^js/JSJoda.DayOfWeek java-time-DayOfWeek15493] (js-invoke java.time.temporal.TemporalAdjusters "next" java-time-DayOfWeek15493))) 3 | (clojure.core/defn next-or-same {:arglists (quote (["java.time.DayOfWeek"]))} (^js/JSJoda.TemporalAdjuster [^js/JSJoda.DayOfWeek java-time-DayOfWeek15494] (js-invoke java.time.temporal.TemporalAdjusters "nextOrSame" java-time-DayOfWeek15494))) 4 | (clojure.core/defn first-day-of-next-month {:arglists (quote ([]))} (^js/JSJoda.TemporalAdjuster [] (js-invoke java.time.temporal.TemporalAdjusters "firstDayOfNextMonth"))) 5 | (clojure.core/defn first-day-of-month {:arglists (quote ([]))} (^js/JSJoda.TemporalAdjuster [] (js-invoke java.time.temporal.TemporalAdjusters "firstDayOfMonth"))) 6 | (clojure.core/defn first-day-of-year {:arglists (quote ([]))} (^js/JSJoda.TemporalAdjuster [] (js-invoke java.time.temporal.TemporalAdjusters "firstDayOfYear"))) 7 | (clojure.core/defn of-date-adjuster {:arglists (quote (["java.util.function.UnaryOperator"]))} (^js/JSJoda.TemporalAdjuster [^java.util.function.UnaryOperator java-util-function-UnaryOperator15495] (js-invoke java.time.temporal.TemporalAdjusters "ofDateAdjuster" java-util-function-UnaryOperator15495))) 8 | (clojure.core/defn last-day-of-year {:arglists (quote ([]))} (^js/JSJoda.TemporalAdjuster [] (js-invoke java.time.temporal.TemporalAdjusters "lastDayOfYear"))) 9 | (clojure.core/defn first-in-month {:arglists (quote (["java.time.DayOfWeek"]))} (^js/JSJoda.TemporalAdjuster [^js/JSJoda.DayOfWeek java-time-DayOfWeek15496] (js-invoke java.time.temporal.TemporalAdjusters "firstInMonth" java-time-DayOfWeek15496))) 10 | (clojure.core/defn previous-or-same {:arglists (quote (["java.time.DayOfWeek"]))} (^js/JSJoda.TemporalAdjuster [^js/JSJoda.DayOfWeek java-time-DayOfWeek15497] (js-invoke java.time.temporal.TemporalAdjusters "previousOrSame" java-time-DayOfWeek15497))) 11 | (clojure.core/defn previous {:arglists (quote (["java.time.DayOfWeek"]))} (^js/JSJoda.TemporalAdjuster [^js/JSJoda.DayOfWeek java-time-DayOfWeek15498] (js-invoke java.time.temporal.TemporalAdjusters "previous" java-time-DayOfWeek15498))) 12 | (clojure.core/defn last-day-of-month {:arglists (quote ([]))} (^js/JSJoda.TemporalAdjuster [] (js-invoke java.time.temporal.TemporalAdjusters "lastDayOfMonth"))) 13 | (clojure.core/defn last-in-month {:arglists (quote (["java.time.DayOfWeek"]))} (^js/JSJoda.TemporalAdjuster [^js/JSJoda.DayOfWeek java-time-DayOfWeek15499] (js-invoke java.time.temporal.TemporalAdjusters "lastInMonth" java-time-DayOfWeek15499))) 14 | (clojure.core/defn first-day-of-next-year {:arglists (quote ([]))} (^js/JSJoda.TemporalAdjuster [] (js-invoke java.time.temporal.TemporalAdjusters "firstDayOfNextYear"))) 15 | (clojure.core/defn day-of-week-in-month {:arglists (quote (["int" "java.time.DayOfWeek"]))} (^js/JSJoda.TemporalAdjuster [^int int15500 ^js/JSJoda.DayOfWeek java-time-DayOfWeek15501] (js-invoke java.time.temporal.TemporalAdjusters "dayOfWeekInMonth" int15500 java-time-DayOfWeek15501))) 16 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/temporal_field.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.temporal-field (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.temporal :refer [TemporalField]])) 2 | (clojure.core/defn get-range-unit {:arglists (quote (["java.time.temporal.TemporalField"]))} (^js/JSJoda.TemporalUnit [^js/JSJoda.TemporalField this15853] (.rangeUnit this15853))) 3 | (clojure.core/defn range {:arglists (quote (["java.time.temporal.TemporalField"]))} (^js/JSJoda.ValueRange [^js/JSJoda.TemporalField this15854] (.range this15854))) 4 | (clojure.core/defn resolve {:arglists (quote (["java.time.temporal.TemporalField" "java.util.Map" "java.time.temporal.TemporalAccessor" "java.time.format.ResolverStyle"]))} (^js/JSJoda.TemporalAccessor [^js/JSJoda.TemporalField this15855 ^java.util.Map java-util-Map15856 ^js/JSJoda.TemporalAccessor java-time-temporal-TemporalAccessor15857 ^js/JSJoda.ResolverStyle java-time-format-ResolverStyle15858] (.resolve this15855 java-util-Map15856 java-time-temporal-TemporalAccessor15857 java-time-format-ResolverStyle15858))) 5 | (clojure.core/defn get-base-unit {:arglists (quote (["java.time.temporal.TemporalField"]))} (^js/JSJoda.TemporalUnit [^js/JSJoda.TemporalField this15859] (.baseUnit this15859))) 6 | (clojure.core/defn to-string {:arglists (quote (["java.time.temporal.TemporalField"]))} (^java.lang.String [^js/JSJoda.TemporalField this15860] (.toString this15860))) 7 | (clojure.core/defn is-date-based {:arglists (quote (["java.time.temporal.TemporalField"]))} (^boolean [^js/JSJoda.TemporalField this15861] (.isDateBased this15861))) 8 | (clojure.core/defn get-display-name {:arglists (quote (["java.time.temporal.TemporalField" "java.util.Locale"]))} (^java.lang.String [^js/JSJoda.TemporalField this15862 ^java.util.Locale java-util-Locale15863] (.displayName this15862 java-util-Locale15863))) 9 | (clojure.core/defn is-supported-by {:arglists (quote (["java.time.temporal.TemporalField" "java.time.temporal.TemporalAccessor"]))} (^boolean [^js/JSJoda.TemporalField this15864 ^js/JSJoda.TemporalAccessor java-time-temporal-TemporalAccessor15865] (.isSupportedBy this15864 java-time-temporal-TemporalAccessor15865))) 10 | (clojure.core/defn range-refined-by {:arglists (quote (["java.time.temporal.TemporalField" "java.time.temporal.TemporalAccessor"]))} (^js/JSJoda.ValueRange [^js/JSJoda.TemporalField this15866 ^js/JSJoda.TemporalAccessor java-time-temporal-TemporalAccessor15867] (.rangeRefinedBy this15866 java-time-temporal-TemporalAccessor15867))) 11 | (clojure.core/defn adjust-into {:arglists (quote (["java.time.temporal.TemporalField" "java.time.temporal.Temporal" "long"]))} (^js/JSJoda.Temporal [^js/JSJoda.TemporalField this15868 ^js/JSJoda.Temporal java-time-temporal-Temporal15869 ^long long15870] (.adjustInto this15868 java-time-temporal-Temporal15869 long15870))) 12 | (clojure.core/defn get-from {:arglists (quote (["java.time.temporal.TemporalField" "java.time.temporal.TemporalAccessor"]))} (^long [^js/JSJoda.TemporalField this15871 ^js/JSJoda.TemporalAccessor java-time-temporal-TemporalAccessor15872] (.from this15871 java-time-temporal-TemporalAccessor15872))) 13 | (clojure.core/defn is-time-based {:arglists (quote (["java.time.temporal.TemporalField"]))} (^boolean [^js/JSJoda.TemporalField this15873] (.isTimeBased this15873))) 14 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/value_range.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.value-range (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.temporal :refer [ValueRange]])) 2 | (clojure.core/defn get-minimum {:arglists (quote (["java.time.temporal.ValueRange"]))} (^long [^js/JSJoda.ValueRange this15803] (.minimum this15803))) 3 | (clojure.core/defn of {:arglists (quote (["long" "long" "long"] ["long" "long" "long" "long"] ["long" "long"]))} (^js/JSJoda.ValueRange [^long long15804 ^long long15805 ^long long15806] (js-invoke java.time.temporal.ValueRange "of" long15804 long15805 long15806)) (^js/JSJoda.ValueRange [^long long15807 ^long long15808 ^long long15809 ^long long15810] (js-invoke java.time.temporal.ValueRange "of" long15807 long15808 long15809 long15810)) (^js/JSJoda.ValueRange [^long long15811 ^long long15812] (js-invoke java.time.temporal.ValueRange "of" long15811 long15812))) 4 | (clojure.core/defn is-valid-value {:arglists (quote (["java.time.temporal.ValueRange" "long"]))} (^boolean [^js/JSJoda.ValueRange this15813 ^long long15814] (.isValidValue this15813 long15814))) 5 | (clojure.core/defn check-valid-int-value {:arglists (quote (["java.time.temporal.ValueRange" "long" "java.time.temporal.TemporalField"]))} (^int [^js/JSJoda.ValueRange this15815 ^long long15816 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15817] (.checkValidIntValue this15815 long15816 java-time-temporal-TemporalField15817))) 6 | (clojure.core/defn to-string {:arglists (quote (["java.time.temporal.ValueRange"]))} (^java.lang.String [^js/JSJoda.ValueRange this15818] (.toString this15818))) 7 | (clojure.core/defn is-int-value {:arglists (quote (["java.time.temporal.ValueRange"]))} (^boolean [^js/JSJoda.ValueRange this15819] (.isIntValue this15819))) 8 | (clojure.core/defn get-smallest-maximum {:arglists (quote (["java.time.temporal.ValueRange"]))} (^long [^js/JSJoda.ValueRange this15820] (.smallestMaximum this15820))) 9 | (clojure.core/defn is-valid-int-value {:arglists (quote (["java.time.temporal.ValueRange" "long"]))} (^boolean [^js/JSJoda.ValueRange this15821 ^long long15822] (.isValidIntValue this15821 long15822))) 10 | (clojure.core/defn hash-code {:arglists (quote (["java.time.temporal.ValueRange"]))} (^int [^js/JSJoda.ValueRange this15823] (.hashCode this15823))) 11 | (clojure.core/defn is-fixed {:arglists (quote (["java.time.temporal.ValueRange"]))} (^boolean [^js/JSJoda.ValueRange this15824] (.isFixed this15824))) 12 | (clojure.core/defn get-maximum {:arglists (quote (["java.time.temporal.ValueRange"]))} (^long [^js/JSJoda.ValueRange this15825] (.maximum this15825))) 13 | (clojure.core/defn equals {:arglists (quote (["java.time.temporal.ValueRange" "java.lang.Object"]))} (^boolean [^js/JSJoda.ValueRange this15826 ^java.lang.Object java-lang-Object15827] (.equals this15826 java-lang-Object15827))) 14 | (clojure.core/defn get-largest-minimum {:arglists (quote (["java.time.temporal.ValueRange"]))} (^long [^js/JSJoda.ValueRange this15828] (.largestMinimum this15828))) 15 | (clojure.core/defn check-valid-value {:arglists (quote (["java.time.temporal.ValueRange" "long" "java.time.temporal.TemporalField"]))} (^long [^js/JSJoda.ValueRange this15829 ^long long15830 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15831] (.checkValidValue this15829 long15830 java-time-temporal-TemporalField15831))) 16 | -------------------------------------------------------------------------------- /src/cljc/java_time/extn/calendar_awareness.cljc: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.extn.calendar-awareness 2 | #?(:cljs (:require-macros [cljc.java-time.extn.calendar-awareness :refer [calendar-aware-cljs]])) 3 | #?(:bb 4 | ; have to put something in bb branch I guess 5 | (:import (java.time Instant)) 6 | :clj (:import (java.time.temporal UnsupportedTemporalTypeException)))) 7 | 8 | (defn 9 | helpful-exception-messages? 10 | "If true, the lib will try to add more helpful messages to exceptions" [] 11 | #?(:clj (not= "true" (System/getProperty "cljc.java-time.disable-helpful-exception-messages"))) 12 | ) 13 | 14 | (comment 15 | (System/setProperty "cljc.java-time.disable-helpful-exception-messages" "true") 16 | (System/setProperty "cljc.java-time.disable-helpful-exception-messages" "false") 17 | ) 18 | 19 | (def helpful-exception-message 20 | "Hi there! - It looks like you might be trying to do something with a java.time.Instant that would require it to be 'calendar-aware', 21 | but in fact Instant has no facility with working with years, months, days etc. Think of it as just 22 | a milli/nanosecond offset from the UNIX epoch. 23 | 24 | To get around this, consider converting the Instant to a 25 | ZonedDateTime first or for formatting/parsing specifically, you might add a zone to your formatter. 26 | see https://stackoverflow.com/a/27483371/1700930. 27 | 28 | You can disable these custom exceptions by setting -Dcljc.java-time.disable-helpful-exception-messages=true") 29 | 30 | (defmacro calendar-aware-clj [f] 31 | (if-not (helpful-exception-messages?) 32 | f 33 | `(try 34 | ~f 35 | (catch #?(:bb Exception :clj UnsupportedTemporalTypeException) e# 36 | (throw (#?(:bb Exception. :clj UnsupportedTemporalTypeException.) 37 | (str ~helpful-exception-message 38 | "\n original message " (.getMessage e#) 39 | "\n cause of exception: " (-> (.getStackTrace e#) first 40 | str)))))))) 41 | 42 | (defmacro calendar-aware-cljs [f] 43 | (if-not (helpful-exception-messages?) 44 | f 45 | `(try 46 | ~f 47 | (catch js/Error e# 48 | (throw (js/Error. (str ~helpful-exception-message 49 | "\n original message " (goog.object/get e# "message") 50 | "\n cause of exception: " (goog.object/get e# "stack")))))))) 51 | 52 | (comment 53 | 54 | *e 55 | (-> (goog.object/get *e "stack")) 56 | (in-ns 'cljc.java-time.extn.calendar-awareness) 57 | (do 58 | (require '[cljc.java-time.instant :as i]) 59 | (require '[cljc.java-time.temporal.chrono-unit :as cu]) 60 | (require '[cljc.java-time.temporal.chrono-field :as cf]) 61 | (require '[cljc.java-time.local-date :as ld]) 62 | (require '[cljc.java-time.format.date-time-formatter :as f]) 63 | ) 64 | (-> (js/Error. "sdf") (.-message)) 65 | (calendar-aware-cljs (i/plus (i/now) 1 cu/years)) 66 | (i/minus (i/now) 1 cu/years) 67 | (i/plus (i/now) 1 cu/years) 68 | (i/range (i/now) cf/minute-of-day) 69 | (i/until (i/now) (cljc.java-time.local-date/now) cu/years) 70 | (i/from (ld/now)) 71 | (i/adjust-into (i/now) (ld/now)) 72 | (i/with (i/now) cf/minute-of-day 1) 73 | (i/get (i/now) cf/minute-of-day) 74 | 75 | (def my-format (f/of-pattern "yyyy-MMM-dd")) 76 | (cljc.java-time.format.date-time-formatter/format my-format (i/now)) 77 | 78 | ) -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/temporal_field.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.temporal-field (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time.temporal TemporalField])) 2 | (clojure.core/defn get-range-unit {:arglists (quote (["java.time.temporal.TemporalField"]))} (^java.time.temporal.ChronoUnit [^java.time.temporal.TemporalField this15832] (.getRangeUnit this15832))) 3 | (clojure.core/defn range {:arglists (quote (["java.time.temporal.TemporalField"]))} (^java.time.temporal.ValueRange [^java.time.temporal.TemporalField this15833] (.range this15833))) 4 | (clojure.core/defn resolve {:arglists (quote (["java.time.temporal.TemporalField" "java.util.Map" "java.time.temporal.TemporalAccessor" "java.time.format.ResolverStyle"]))} (^java.time.temporal.TemporalAccessor [^java.time.temporal.TemporalField this15834 ^java.util.Map java-util-Map15835 ^java.time.temporal.TemporalAccessor java-time-temporal-TemporalAccessor15836 ^java.time.format.ResolverStyle java-time-format-ResolverStyle15837] (.resolve this15834 java-util-Map15835 java-time-temporal-TemporalAccessor15836 java-time-format-ResolverStyle15837))) 5 | (clojure.core/defn get-base-unit {:arglists (quote (["java.time.temporal.TemporalField"]))} (^java.time.temporal.ChronoUnit [^java.time.temporal.TemporalField this15838] (.getBaseUnit this15838))) 6 | (clojure.core/defn to-string {:arglists (quote (["java.time.temporal.TemporalField"]))} (^java.lang.String [^java.time.temporal.TemporalField this15839] (.toString this15839))) 7 | (clojure.core/defn is-date-based {:arglists (quote (["java.time.temporal.TemporalField"]))} (^java.lang.Boolean [^java.time.temporal.TemporalField this15840] (.isDateBased this15840))) 8 | (clojure.core/defn get-display-name {:arglists (quote (["java.time.temporal.TemporalField" "java.util.Locale"]))} (^java.lang.String [^java.time.temporal.TemporalField this15841 ^java.util.Locale java-util-Locale15842] (.getDisplayName this15841 java-util-Locale15842))) 9 | (clojure.core/defn is-supported-by {:arglists (quote (["java.time.temporal.TemporalField" "java.time.temporal.TemporalAccessor"]))} (^java.lang.Boolean [^java.time.temporal.TemporalField this15843 ^java.time.temporal.TemporalAccessor java-time-temporal-TemporalAccessor15844] (.isSupportedBy this15843 java-time-temporal-TemporalAccessor15844))) 10 | (clojure.core/defn range-refined-by {:arglists (quote (["java.time.temporal.TemporalField" "java.time.temporal.TemporalAccessor"]))} (^java.time.temporal.ValueRange [^java.time.temporal.TemporalField this15845 ^java.time.temporal.TemporalAccessor java-time-temporal-TemporalAccessor15846] (.rangeRefinedBy this15845 java-time-temporal-TemporalAccessor15846))) 11 | (clojure.core/defn adjust-into {:arglists (quote (["java.time.temporal.TemporalField" "java.time.temporal.Temporal" "long"]))} (^java.time.temporal.Temporal [^java.time.temporal.TemporalField this15847 ^java.time.temporal.Temporal java-time-temporal-Temporal15848 ^long long15849] (.adjustInto this15847 java-time-temporal-Temporal15848 long15849))) 12 | (clojure.core/defn get-from {:arglists (quote (["java.time.temporal.TemporalField" "java.time.temporal.TemporalAccessor"]))} (^long [^java.time.temporal.TemporalField this15850 ^java.time.temporal.TemporalAccessor java-time-temporal-TemporalAccessor15851] (.getFrom this15850 java-time-temporal-TemporalAccessor15851))) 13 | (clojure.core/defn is-time-based {:arglists (quote (["java.time.temporal.TemporalField"]))} (^java.lang.Boolean [^java.time.temporal.TemporalField this15852] (.isTimeBased this15852))) 14 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/value_range.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.value-range (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time.temporal ValueRange])) 2 | (clojure.core/defn get-minimum {:arglists (quote (["java.time.temporal.ValueRange"]))} (^long [^java.time.temporal.ValueRange this15774] (.getMinimum this15774))) 3 | (clojure.core/defn of {:arglists (quote (["long" "long" "long"] ["long" "long" "long" "long"] ["long" "long"]))} (^java.time.temporal.ValueRange [^long long15775 ^long long15776 ^long long15777] (java.time.temporal.ValueRange/of long15775 long15776 long15777)) (^java.time.temporal.ValueRange [^long long15778 ^long long15779 ^long long15780 ^long long15781] (java.time.temporal.ValueRange/of long15778 long15779 long15780 long15781)) (^java.time.temporal.ValueRange [^long long15782 ^long long15783] (java.time.temporal.ValueRange/of long15782 long15783))) 4 | (clojure.core/defn is-valid-value {:arglists (quote (["java.time.temporal.ValueRange" "long"]))} (^java.lang.Boolean [^java.time.temporal.ValueRange this15784 ^long long15785] (.isValidValue this15784 long15785))) 5 | (clojure.core/defn check-valid-int-value {:arglists (quote (["java.time.temporal.ValueRange" "long" "java.time.temporal.TemporalField"]))} (^java.lang.Integer [^java.time.temporal.ValueRange this15786 ^long long15787 ^java.time.temporal.TemporalField java-time-temporal-TemporalField15788] (.checkValidIntValue this15786 long15787 java-time-temporal-TemporalField15788))) 6 | (clojure.core/defn to-string {:arglists (quote (["java.time.temporal.ValueRange"]))} (^java.lang.String [^java.time.temporal.ValueRange this15789] (.toString this15789))) 7 | (clojure.core/defn is-int-value {:arglists (quote (["java.time.temporal.ValueRange"]))} (^java.lang.Boolean [^java.time.temporal.ValueRange this15790] (.isIntValue this15790))) 8 | (clojure.core/defn get-smallest-maximum {:arglists (quote (["java.time.temporal.ValueRange"]))} (^long [^java.time.temporal.ValueRange this15791] (.getSmallestMaximum this15791))) 9 | (clojure.core/defn is-valid-int-value {:arglists (quote (["java.time.temporal.ValueRange" "long"]))} (^java.lang.Boolean [^java.time.temporal.ValueRange this15792 ^long long15793] (.isValidIntValue this15792 long15793))) 10 | (clojure.core/defn hash-code {:arglists (quote (["java.time.temporal.ValueRange"]))} (^java.lang.Integer [^java.time.temporal.ValueRange this15794] (.hashCode this15794))) 11 | (clojure.core/defn is-fixed {:arglists (quote (["java.time.temporal.ValueRange"]))} (^java.lang.Boolean [^java.time.temporal.ValueRange this15795] (.isFixed this15795))) 12 | (clojure.core/defn get-maximum {:arglists (quote (["java.time.temporal.ValueRange"]))} (^long [^java.time.temporal.ValueRange this15796] (.getMaximum this15796))) 13 | (clojure.core/defn equals {:arglists (quote (["java.time.temporal.ValueRange" "java.lang.Object"]))} (^java.lang.Boolean [^java.time.temporal.ValueRange this15797 ^java.lang.Object java-lang-Object15798] (.equals this15797 java-lang-Object15798))) 14 | (clojure.core/defn get-largest-minimum {:arglists (quote (["java.time.temporal.ValueRange"]))} (^long [^java.time.temporal.ValueRange this15799] (.getLargestMinimum this15799))) 15 | (clojure.core/defn check-valid-value {:arglists (quote (["java.time.temporal.ValueRange" "long" "java.time.temporal.TemporalField"]))} (^long [^java.time.temporal.ValueRange this15800 ^long long15801 ^java.time.temporal.TemporalField java-time-temporal-TemporalField15802] (.checkValidValue this15800 long15801 java-time-temporal-TemporalField15802))) 16 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/temporal.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.temporal (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.temporal :refer [Temporal]])) 2 | (clojure.core/defn range {:arglists (quote (["java.time.temporal.Temporal" "java.time.temporal.TemporalField"]))} (^js/JSJoda.ValueRange [^js/JSJoda.Temporal this15530 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15531] (.range this15530 java-time-temporal-TemporalField15531))) 3 | (clojure.core/defn plus {:arglists (quote (["java.time.temporal.Temporal" "long" "java.time.temporal.TemporalUnit"] ["java.time.temporal.Temporal" "java.time.temporal.TemporalAmount"]))} (^js/JSJoda.Temporal [^js/JSJoda.Temporal this15532 ^long long15533 ^js/JSJoda.TemporalUnit java-time-temporal-TemporalUnit15534] (.plus this15532 long15533 java-time-temporal-TemporalUnit15534)) (^js/JSJoda.Temporal [^js/JSJoda.Temporal this15535 ^js/JSJoda.TemporalAmount java-time-temporal-TemporalAmount15536] (.plus this15535 java-time-temporal-TemporalAmount15536))) 4 | (clojure.core/defn query {:arglists (quote (["java.time.temporal.Temporal" "java.time.temporal.TemporalQuery"]))} (^java.lang.Object [^js/JSJoda.Temporal this15537 ^js/JSJoda.TemporalQuery java-time-temporal-TemporalQuery15538] (.query this15537 java-time-temporal-TemporalQuery15538))) 5 | (clojure.core/defn minus {:arglists (quote (["java.time.temporal.Temporal" "long" "java.time.temporal.TemporalUnit"] ["java.time.temporal.Temporal" "java.time.temporal.TemporalAmount"]))} (^js/JSJoda.Temporal [^js/JSJoda.Temporal this15539 ^long long15540 ^js/JSJoda.TemporalUnit java-time-temporal-TemporalUnit15541] (.minus this15539 long15540 java-time-temporal-TemporalUnit15541)) (^js/JSJoda.Temporal [^js/JSJoda.Temporal this15542 ^js/JSJoda.TemporalAmount java-time-temporal-TemporalAmount15543] (.minus this15542 java-time-temporal-TemporalAmount15543))) 6 | (clojure.core/defn get-long {:arglists (quote (["java.time.temporal.Temporal" "java.time.temporal.TemporalField"]))} (^long [^js/JSJoda.Temporal this15544 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15545] (.getLong this15544 java-time-temporal-TemporalField15545))) 7 | (clojure.core/defn until {:arglists (quote (["java.time.temporal.Temporal" "java.time.temporal.Temporal" "java.time.temporal.TemporalUnit"]))} (^long [^js/JSJoda.Temporal this15546 ^js/JSJoda.Temporal java-time-temporal-Temporal15547 ^js/JSJoda.TemporalUnit java-time-temporal-TemporalUnit15548] (.until this15546 java-time-temporal-Temporal15547 java-time-temporal-TemporalUnit15548))) 8 | (clojure.core/defn is-supported {:arglists (quote (["java.time.temporal.Temporal" "java.time.temporal.TemporalUnit"] ["java.time.temporal.Temporal" "java.time.temporal.TemporalField"]))} (^boolean [this15549 G__15550] (.isSupported ^js/JSJoda.Temporal this15549 G__15550))) 9 | (clojure.core/defn with {:arglists (quote (["java.time.temporal.Temporal" "java.time.temporal.TemporalField" "long"] ["java.time.temporal.Temporal" "java.time.temporal.TemporalAdjuster"]))} (^js/JSJoda.Temporal [^js/JSJoda.Temporal this15551 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15552 ^long long15553] (.with this15551 java-time-temporal-TemporalField15552 long15553)) (^js/JSJoda.Temporal [^js/JSJoda.Temporal this15554 ^js/JSJoda.TemporalAdjuster java-time-temporal-TemporalAdjuster15555] (.with this15554 java-time-temporal-TemporalAdjuster15555))) 10 | (clojure.core/defn get {:arglists (quote (["java.time.temporal.Temporal" "java.time.temporal.TemporalField"]))} (^int [^js/JSJoda.Temporal this15556 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15557] (.get this15556 java-time-temporal-TemporalField15557))) 11 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/temporal.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.temporal (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time.temporal Temporal])) 2 | (clojure.core/defn range {:arglists (quote (["java.time.temporal.Temporal" "java.time.temporal.TemporalField"]))} (^java.time.temporal.ValueRange [^java.time.temporal.Temporal this15502 ^java.time.temporal.TemporalField java-time-temporal-TemporalField15503] (.range this15502 java-time-temporal-TemporalField15503))) 3 | (clojure.core/defn plus {:arglists (quote (["java.time.temporal.Temporal" "long" "java.time.temporal.TemporalUnit"] ["java.time.temporal.Temporal" "java.time.temporal.TemporalAmount"]))} (^java.time.temporal.Temporal [^java.time.temporal.Temporal this15504 ^long long15505 ^java.time.temporal.ChronoUnit java-time-temporal-TemporalUnit15506] (.plus this15504 long15505 java-time-temporal-TemporalUnit15506)) (^java.time.temporal.Temporal [^java.time.temporal.Temporal this15507 ^java.time.temporal.TemporalAmount java-time-temporal-TemporalAmount15508] (.plus this15507 java-time-temporal-TemporalAmount15508))) 4 | (clojure.core/defn query {:arglists (quote (["java.time.temporal.Temporal" "java.time.temporal.TemporalQuery"]))} (^java.lang.Object [^java.time.temporal.Temporal this15509 ^java.time.temporal.TemporalQuery java-time-temporal-TemporalQuery15510] (.query this15509 java-time-temporal-TemporalQuery15510))) 5 | (clojure.core/defn minus {:arglists (quote (["java.time.temporal.Temporal" "long" "java.time.temporal.TemporalUnit"] ["java.time.temporal.Temporal" "java.time.temporal.TemporalAmount"]))} (^java.time.temporal.Temporal [^java.time.temporal.Temporal this15511 ^long long15512 ^java.time.temporal.ChronoUnit java-time-temporal-TemporalUnit15513] (.minus this15511 long15512 java-time-temporal-TemporalUnit15513)) (^java.time.temporal.Temporal [^java.time.temporal.Temporal this15514 ^java.time.temporal.TemporalAmount java-time-temporal-TemporalAmount15515] (.minus this15514 java-time-temporal-TemporalAmount15515))) 6 | (clojure.core/defn get-long {:arglists (quote (["java.time.temporal.Temporal" "java.time.temporal.TemporalField"]))} (^long [^java.time.temporal.Temporal this15516 ^java.time.temporal.TemporalField java-time-temporal-TemporalField15517] (.getLong this15516 java-time-temporal-TemporalField15517))) 7 | (clojure.core/defn until {:arglists (quote (["java.time.temporal.Temporal" "java.time.temporal.Temporal" "java.time.temporal.TemporalUnit"]))} (^long [^java.time.temporal.Temporal this15518 ^java.time.temporal.Temporal java-time-temporal-Temporal15519 ^java.time.temporal.ChronoUnit java-time-temporal-TemporalUnit15520] (.until this15518 java-time-temporal-Temporal15519 java-time-temporal-TemporalUnit15520))) 8 | (clojure.core/defn is-supported {:arglists (quote (["java.time.temporal.Temporal" "java.time.temporal.TemporalUnit"] ["java.time.temporal.Temporal" "java.time.temporal.TemporalField"]))} (^java.lang.Boolean [this15521 G__15522] (clojure.core/cond (clojure.core/and (clojure.core/instance? java.time.temporal.ChronoUnit G__15522)) (clojure.core/let [G__15522 ^"java.time.temporal.ChronoUnit" G__15522] (.isSupported ^java.time.temporal.Temporal this15521 G__15522)) (clojure.core/and (clojure.core/instance? java.time.temporal.TemporalField G__15522)) (clojure.core/let [G__15522 ^"java.time.temporal.TemporalField" G__15522] (.isSupported ^java.time.temporal.Temporal this15521 G__15522)) :else (throw (java.lang.IllegalArgumentException. "no corresponding java.time method with these args"))))) 9 | (clojure.core/defn with {:arglists (quote (["java.time.temporal.Temporal" "java.time.temporal.TemporalField" "long"] ["java.time.temporal.Temporal" "java.time.temporal.TemporalAdjuster"]))} (^java.time.temporal.Temporal [^java.time.temporal.Temporal this15523 ^java.time.temporal.TemporalField java-time-temporal-TemporalField15524 ^long long15525] (.with this15523 java-time-temporal-TemporalField15524 long15525)) (^java.time.temporal.Temporal [^java.time.temporal.Temporal this15526 ^java.time.temporal.TemporalAdjuster java-time-temporal-TemporalAdjuster15527] (.with this15526 java-time-temporal-TemporalAdjuster15527))) 10 | (clojure.core/defn get {:arglists (quote (["java.time.temporal.Temporal" "java.time.temporal.TemporalField"]))} (^java.lang.Integer [^java.time.temporal.Temporal this15528 ^java.time.temporal.TemporalField java-time-temporal-TemporalField15529] (.get this15528 java-time-temporal-TemporalField15529))) 11 | -------------------------------------------------------------------------------- /test/cljc/java_time_test.cljc: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time-test 2 | (:require [clojure.test :refer [deftest testing is]] 3 | [cljc.java-time.temporal.chrono-field] 4 | [cljc.java-time.temporal.chrono-unit] 5 | [cljc.java-time.temporal.iso-fields] 6 | [cljc.java-time.temporal.temporal] 7 | [cljc.java-time.temporal.temporal-accessor] 8 | [cljc.java-time.temporal.temporal-adjuster] 9 | [cljc.java-time.format.date-time-formatter] 10 | [cljc.java-time.format.resolver-style] 11 | [cljc.java-time.format.date-time-formatter-builder] 12 | [cljc.java-time.format.decimal-style] 13 | [cljc.java-time.format.sign-style] 14 | [cljc.java-time.format.text-style] 15 | [cljc.java-time.clock :as clock] 16 | [cljc.java-time.day-of-week :as day-of-week] 17 | [cljc.java-time.duration :as duration] 18 | [cljc.java-time.instant :as instant] 19 | [cljc.java-time.local-date :as local-date] 20 | [cljc.java-time.local-date-time :as local-date-time] 21 | [cljc.java-time.local-time :as local-time] 22 | [cljc.java-time.month :as month] 23 | [cljc.java-time.month-day :as month-day] 24 | [cljc.java-time.offset-date-time :as offset-date-time] 25 | [cljc.java-time.offset-time :as offset-time] 26 | [cljc.java-time.period :as period] 27 | [cljc.java-time.year :as year] 28 | [cljc.java-time.year-month :as year-month] 29 | [cljc.java-time.zone-id :as zone-id] 30 | [cljc.java-time.zone-offset :as zone-offset] 31 | [cljc.java-time.zoned-date-time :as zoned-date-time] 32 | [cljc.java-time.extn.predicates :as predicates] 33 | 34 | #?(:cljs [cljs.java-time.extend-eq-and-compare]))) 35 | 36 | #?(:clj 37 | (deftest multi-tail-var-args 38 | (testing "multi-tail var args example" 39 | (is (let [a (make-array java.time.temporal.TemporalField 1)] 40 | (aset a 0 cljc.java-time.temporal.chrono-field/nano-of-second) 41 | (cljc.java-time.format.date-time-formatter/with-resolver-fields 42 | cljc.java-time.format.date-time-formatter/iso-instant 43 | a)))))) 44 | 45 | (deftest normal-multi-tail 46 | (is (year-month/of (int 12) (int 12))) 47 | (is (year-month/of (int 12) month/january))) 48 | 49 | (deftest get-longs 50 | (testing "normal getter" 51 | (is (year-month/get-year 52 | (year-month/now)))) 53 | (testing "getLong, which has a different name in jsjoda :-S " 54 | (is (year-month/get-long 55 | (year-month/now) 56 | cljc.java-time.temporal.chrono-field/month-of-year)))) 57 | 58 | (deftest leap-year 59 | (testing "no obv. way to accommodate both isLeap methods. just going with the static one" 60 | (is (year/is-leap 24)))) 61 | 62 | (deftest of-works-in-js-and-jvm 63 | (is (= (local-date-time/of 2011 month/january 3 11 59) (local-date-time/of 2011 month/january 3 11 59)))) 64 | 65 | (deftest predicates 66 | (is (true? (predicates/clock? (clock/system-utc)))) 67 | (is (true? (predicates/day-of-week? day-of-week/monday))) 68 | (is (true? (predicates/duration? (duration/parse "PT1M")))) 69 | (is (true? (predicates/instant? (instant/now)))) 70 | (is (true? (predicates/local-date? (local-date/now)))) 71 | (is (true? (predicates/local-date-time? (local-date-time/now)))) 72 | (is (true? (predicates/local-time? (local-time/now)))) 73 | (is (true? (predicates/month? month/may))) 74 | (is (true? (predicates/month-day? (month-day/now)))) 75 | (is (true? (predicates/offset-date-time? (offset-date-time/now)))) 76 | (is (true? (predicates/offset-time? (offset-time/now)))) 77 | (is (true? (predicates/period? (period/parse "P1D")))) 78 | (is (true? (predicates/year? (year/now)))) 79 | (is (true? (predicates/year-month? (year-month/now)))) 80 | (is (true? (predicates/zone-id? (zone-id/system-default)))) 81 | (is (true? (predicates/zone-offset? zone-offset/utc))) 82 | (is (true? (predicates/zoned-date-time? (zoned-date-time/now)))) 83 | 84 | (is (true? (predicates/date? (local-date/now)))) 85 | (is (true? (predicates/date-time? (local-date-time/now)))) 86 | (is (true? (predicates/time? (local-time/now)))) 87 | 88 | (is (false? (predicates/local-date? 16))) 89 | (is (false? (predicates/month? 16)))) 90 | 91 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/chrono_unit.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.chrono-unit (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time.temporal ChronoUnit])) 2 | (def millis java.time.temporal.ChronoUnit/MILLIS) 3 | (def minutes java.time.temporal.ChronoUnit/MINUTES) 4 | (def micros java.time.temporal.ChronoUnit/MICROS) 5 | (def half-days java.time.temporal.ChronoUnit/HALF_DAYS) 6 | (def millennia java.time.temporal.ChronoUnit/MILLENNIA) 7 | (def years java.time.temporal.ChronoUnit/YEARS) 8 | (def decades java.time.temporal.ChronoUnit/DECADES) 9 | (def days java.time.temporal.ChronoUnit/DAYS) 10 | (def centuries java.time.temporal.ChronoUnit/CENTURIES) 11 | (def weeks java.time.temporal.ChronoUnit/WEEKS) 12 | (def hours java.time.temporal.ChronoUnit/HOURS) 13 | (def eras java.time.temporal.ChronoUnit/ERAS) 14 | (def seconds java.time.temporal.ChronoUnit/SECONDS) 15 | (def months java.time.temporal.ChronoUnit/MONTHS) 16 | (def nanos java.time.temporal.ChronoUnit/NANOS) 17 | (def forever java.time.temporal.ChronoUnit/FOREVER) 18 | (clojure.core/defn values {:arglists (quote ([]))} (^"java.lang.Class" [] (java.time.temporal.ChronoUnit/values))) 19 | (clojure.core/defn value-of {:arglists (quote (["java.lang.String"] ["java.lang.Class" "java.lang.String"]))} (^java.time.temporal.ChronoUnit [^java.lang.String java-lang-String15572] (java.time.temporal.ChronoUnit/valueOf java-lang-String15572)) (^java.lang.Enum [^java.lang.Class java-lang-Class15573 ^java.lang.String java-lang-String15574] (java.time.temporal.ChronoUnit/valueOf java-lang-Class15573 java-lang-String15574))) 20 | (clojure.core/defn ordinal {:arglists (quote (["java.time.temporal.ChronoUnit"]))} (^java.lang.Integer [^java.time.temporal.ChronoUnit this15575] (.ordinal this15575))) 21 | (clojure.core/defn is-duration-estimated {:arglists (quote (["java.time.temporal.ChronoUnit"]))} (^java.lang.Boolean [^java.time.temporal.ChronoUnit this15576] (.isDurationEstimated this15576))) 22 | (clojure.core/defn to-string {:arglists (quote (["java.time.temporal.ChronoUnit"]))} (^java.lang.String [^java.time.temporal.ChronoUnit this15577] (.toString this15577))) 23 | (clojure.core/defn is-date-based {:arglists (quote (["java.time.temporal.ChronoUnit"]))} (^java.lang.Boolean [^java.time.temporal.ChronoUnit this15578] (.isDateBased this15578))) 24 | (clojure.core/defn add-to {:arglists (quote (["java.time.temporal.ChronoUnit" "java.time.temporal.Temporal" "long"]))} (^java.time.temporal.Temporal [^java.time.temporal.ChronoUnit this15579 ^java.time.temporal.Temporal java-time-temporal-Temporal15580 ^long long15581] (.addTo this15579 java-time-temporal-Temporal15580 long15581))) 25 | (clojure.core/defn name {:arglists (quote (["java.time.temporal.ChronoUnit"]))} (^java.lang.String [^java.time.temporal.ChronoUnit this15582] (.name this15582))) 26 | (clojure.core/defn is-supported-by {:arglists (quote (["java.time.temporal.ChronoUnit" "java.time.temporal.Temporal"]))} (^java.lang.Boolean [^java.time.temporal.ChronoUnit this15583 ^java.time.temporal.Temporal java-time-temporal-Temporal15584] (.isSupportedBy this15583 java-time-temporal-Temporal15584))) 27 | (clojure.core/defn get-declaring-class {:arglists (quote (["java.time.temporal.ChronoUnit"]))} (^java.lang.Class [^java.time.temporal.ChronoUnit this15585] (.getDeclaringClass this15585))) 28 | (clojure.core/defn between {:arglists (quote (["java.time.temporal.ChronoUnit" "java.time.temporal.Temporal" "java.time.temporal.Temporal"]))} (^long [^java.time.temporal.ChronoUnit this15586 ^java.time.temporal.Temporal java-time-temporal-Temporal15587 ^java.time.temporal.Temporal java-time-temporal-Temporal15588] (.between this15586 java-time-temporal-Temporal15587 java-time-temporal-Temporal15588))) 29 | (clojure.core/defn hash-code {:arglists (quote (["java.time.temporal.ChronoUnit"]))} (^java.lang.Integer [^java.time.temporal.ChronoUnit this15589] (.hashCode this15589))) 30 | (clojure.core/defn compare-to {:arglists (quote (["java.time.temporal.ChronoUnit" "java.lang.Enum"]))} (^java.lang.Integer [^java.time.temporal.ChronoUnit this15590 ^java.lang.Enum java-lang-Enum15591] (.compareTo this15590 java-lang-Enum15591))) 31 | (clojure.core/defn get-duration {:arglists (quote (["java.time.temporal.ChronoUnit"]))} (^java.time.Duration [^java.time.temporal.ChronoUnit this15592] (.getDuration this15592))) 32 | (clojure.core/defn equals {:arglists (quote (["java.time.temporal.ChronoUnit" "java.lang.Object"]))} (^java.lang.Boolean [^java.time.temporal.ChronoUnit this15593 ^java.lang.Object java-lang-Object15594] (.equals this15593 java-lang-Object15594))) 33 | (clojure.core/defn is-time-based {:arglists (quote (["java.time.temporal.ChronoUnit"]))} (^java.lang.Boolean [^java.time.temporal.ChronoUnit this15595] (.isTimeBased this15595))) 34 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/chrono_unit.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.chrono-unit (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.temporal :refer [ChronoUnit]])) 2 | (def millis (goog.object/get java.time.temporal.ChronoUnit "MILLIS")) 3 | (def minutes (goog.object/get java.time.temporal.ChronoUnit "MINUTES")) 4 | (def micros (goog.object/get java.time.temporal.ChronoUnit "MICROS")) 5 | (def half-days (goog.object/get java.time.temporal.ChronoUnit "HALF_DAYS")) 6 | (def millennia (goog.object/get java.time.temporal.ChronoUnit "MILLENNIA")) 7 | (def years (goog.object/get java.time.temporal.ChronoUnit "YEARS")) 8 | (def decades (goog.object/get java.time.temporal.ChronoUnit "DECADES")) 9 | (def days (goog.object/get java.time.temporal.ChronoUnit "DAYS")) 10 | (def centuries (goog.object/get java.time.temporal.ChronoUnit "CENTURIES")) 11 | (def weeks (goog.object/get java.time.temporal.ChronoUnit "WEEKS")) 12 | (def hours (goog.object/get java.time.temporal.ChronoUnit "HOURS")) 13 | (def eras (goog.object/get java.time.temporal.ChronoUnit "ERAS")) 14 | (def seconds (goog.object/get java.time.temporal.ChronoUnit "SECONDS")) 15 | (def months (goog.object/get java.time.temporal.ChronoUnit "MONTHS")) 16 | (def nanos (goog.object/get java.time.temporal.ChronoUnit "NANOS")) 17 | (def forever (goog.object/get java.time.temporal.ChronoUnit "FOREVER")) 18 | (clojure.core/defn values {:arglists (quote ([]))} (^"java.lang.Class" [] (js-invoke java.time.temporal.ChronoUnit "values"))) 19 | (clojure.core/defn value-of {:arglists (quote (["java.lang.String"] ["java.lang.Class" "java.lang.String"]))} (^js/JSJoda.ChronoUnit [^java.lang.String java-lang-String15596] (js-invoke java.time.temporal.ChronoUnit "valueOf" java-lang-String15596)) (^java.lang.Enum [^java.lang.Class java-lang-Class15597 ^java.lang.String java-lang-String15598] (js-invoke java.time.temporal.ChronoUnit "valueOf" java-lang-Class15597 java-lang-String15598))) 20 | (clojure.core/defn ordinal {:arglists (quote (["java.time.temporal.ChronoUnit"]))} (^int [^js/JSJoda.ChronoUnit this15599] (.ordinal this15599))) 21 | (clojure.core/defn is-duration-estimated {:arglists (quote (["java.time.temporal.ChronoUnit"]))} (^boolean [^js/JSJoda.ChronoUnit this15600] (.isDurationEstimated this15600))) 22 | (clojure.core/defn to-string {:arglists (quote (["java.time.temporal.ChronoUnit"]))} (^java.lang.String [^js/JSJoda.ChronoUnit this15601] (.toString this15601))) 23 | (clojure.core/defn is-date-based {:arglists (quote (["java.time.temporal.ChronoUnit"]))} (^boolean [^js/JSJoda.ChronoUnit this15602] (.isDateBased this15602))) 24 | (clojure.core/defn add-to {:arglists (quote (["java.time.temporal.ChronoUnit" "java.time.temporal.Temporal" "long"]))} (^js/JSJoda.Temporal [^js/JSJoda.ChronoUnit this15603 ^js/JSJoda.Temporal java-time-temporal-Temporal15604 ^long long15605] (.addTo this15603 java-time-temporal-Temporal15604 long15605))) 25 | (clojure.core/defn name {:arglists (quote (["java.time.temporal.ChronoUnit"]))} (^java.lang.String [^js/JSJoda.ChronoUnit this15606] (.name this15606))) 26 | (clojure.core/defn is-supported-by {:arglists (quote (["java.time.temporal.ChronoUnit" "java.time.temporal.Temporal"]))} (^boolean [^js/JSJoda.ChronoUnit this15607 ^js/JSJoda.Temporal java-time-temporal-Temporal15608] (.isSupportedBy this15607 java-time-temporal-Temporal15608))) 27 | (clojure.core/defn get-declaring-class {:arglists (quote (["java.time.temporal.ChronoUnit"]))} (^java.lang.Class [^js/JSJoda.ChronoUnit this15609] (.declaringClass this15609))) 28 | (clojure.core/defn between {:arglists (quote (["java.time.temporal.ChronoUnit" "java.time.temporal.Temporal" "java.time.temporal.Temporal"]))} (^long [^js/JSJoda.ChronoUnit this15610 ^js/JSJoda.Temporal java-time-temporal-Temporal15611 ^js/JSJoda.Temporal java-time-temporal-Temporal15612] (.between this15610 java-time-temporal-Temporal15611 java-time-temporal-Temporal15612))) 29 | (clojure.core/defn hash-code {:arglists (quote (["java.time.temporal.ChronoUnit"]))} (^int [^js/JSJoda.ChronoUnit this15613] (.hashCode this15613))) 30 | (clojure.core/defn compare-to {:arglists (quote (["java.time.temporal.ChronoUnit" "java.lang.Enum"]))} (^int [^js/JSJoda.ChronoUnit this15614 ^java.lang.Enum java-lang-Enum15615] (.compareTo this15614 java-lang-Enum15615))) 31 | (clojure.core/defn get-duration {:arglists (quote (["java.time.temporal.ChronoUnit"]))} (^js/JSJoda.Duration [^js/JSJoda.ChronoUnit this15616] (.duration this15616))) 32 | (clojure.core/defn equals {:arglists (quote (["java.time.temporal.ChronoUnit" "java.lang.Object"]))} (^boolean [^js/JSJoda.ChronoUnit this15617 ^java.lang.Object java-lang-Object15618] (.equals this15617 java-lang-Object15618))) 33 | (clojure.core/defn is-time-based {:arglists (quote (["java.time.temporal.ChronoUnit"]))} (^boolean [^js/JSJoda.ChronoUnit this15619] (.isTimeBased this15619))) 34 | -------------------------------------------------------------------------------- /src/cljc/java_time/day_of_week.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.day-of-week (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time DayOfWeek])) 2 | (def saturday java.time.DayOfWeek/SATURDAY) 3 | (def thursday java.time.DayOfWeek/THURSDAY) 4 | (def friday java.time.DayOfWeek/FRIDAY) 5 | (def wednesday java.time.DayOfWeek/WEDNESDAY) 6 | (def sunday java.time.DayOfWeek/SUNDAY) 7 | (def monday java.time.DayOfWeek/MONDAY) 8 | (def tuesday java.time.DayOfWeek/TUESDAY) 9 | (clojure.core/defn range {:arglists (quote (["java.time.DayOfWeek" "java.time.temporal.TemporalField"]))} (^java.time.temporal.ValueRange [^java.time.DayOfWeek this14504 ^java.time.temporal.TemporalField java-time-temporal-TemporalField14505] (.range this14504 java-time-temporal-TemporalField14505))) 10 | (clojure.core/defn values {:arglists (quote ([]))} (^"java.lang.Class" [] (java.time.DayOfWeek/values))) 11 | (clojure.core/defn value-of {:arglists (quote (["java.lang.String"] ["java.lang.Class" "java.lang.String"]))} (^java.time.DayOfWeek [^java.lang.String java-lang-String14506] (java.time.DayOfWeek/valueOf java-lang-String14506)) (^java.lang.Enum [^java.lang.Class java-lang-Class14507 ^java.lang.String java-lang-String14508] (java.time.DayOfWeek/valueOf java-lang-Class14507 java-lang-String14508))) 12 | (clojure.core/defn of {:arglists (quote (["int"]))} (^java.time.DayOfWeek [^java.lang.Integer int14509] (java.time.DayOfWeek/of int14509))) 13 | (clojure.core/defn ordinal {:arglists (quote (["java.time.DayOfWeek"]))} (^java.lang.Integer [^java.time.DayOfWeek this14510] (.ordinal this14510))) 14 | (clojure.core/defn plus {:arglists (quote (["java.time.DayOfWeek" "long"]))} (^java.time.DayOfWeek [^java.time.DayOfWeek this14511 ^long long14512] (.plus this14511 long14512))) 15 | (clojure.core/defn query {:arglists (quote (["java.time.DayOfWeek" "java.time.temporal.TemporalQuery"]))} (^java.lang.Object [^java.time.DayOfWeek this14513 ^java.time.temporal.TemporalQuery java-time-temporal-TemporalQuery14514] (.query this14513 java-time-temporal-TemporalQuery14514))) 16 | (clojure.core/defn to-string {:arglists (quote (["java.time.DayOfWeek"]))} (^java.lang.String [^java.time.DayOfWeek this14515] (.toString this14515))) 17 | (clojure.core/defn minus {:arglists (quote (["java.time.DayOfWeek" "long"]))} (^java.time.DayOfWeek [^java.time.DayOfWeek this14516 ^long long14517] (.minus this14516 long14517))) 18 | (clojure.core/defn get-display-name {:arglists (quote (["java.time.DayOfWeek" "java.time.format.TextStyle" "java.util.Locale"]))} (^java.lang.String [^java.time.DayOfWeek this14518 ^java.time.format.TextStyle java-time-format-TextStyle14519 ^java.util.Locale java-util-Locale14520] (.getDisplayName this14518 java-time-format-TextStyle14519 java-util-Locale14520))) 19 | (clojure.core/defn get-value {:arglists (quote (["java.time.DayOfWeek"]))} (^java.lang.Integer [^java.time.DayOfWeek this14521] (.getValue this14521))) 20 | (clojure.core/defn name {:arglists (quote (["java.time.DayOfWeek"]))} (^java.lang.String [^java.time.DayOfWeek this14522] (.name this14522))) 21 | (clojure.core/defn get-long {:arglists (quote (["java.time.DayOfWeek" "java.time.temporal.TemporalField"]))} (^long [^java.time.DayOfWeek this14523 ^java.time.temporal.TemporalField java-time-temporal-TemporalField14524] (.getLong this14523 java-time-temporal-TemporalField14524))) 22 | (clojure.core/defn get-declaring-class {:arglists (quote (["java.time.DayOfWeek"]))} (^java.lang.Class [^java.time.DayOfWeek this14525] (.getDeclaringClass this14525))) 23 | (clojure.core/defn from {:arglists (quote (["java.time.temporal.TemporalAccessor"]))} (^java.time.DayOfWeek [^java.time.temporal.TemporalAccessor java-time-temporal-TemporalAccessor14526] (java.time.DayOfWeek/from java-time-temporal-TemporalAccessor14526))) 24 | (clojure.core/defn is-supported {:arglists (quote (["java.time.DayOfWeek" "java.time.temporal.TemporalField"]))} (^java.lang.Boolean [^java.time.DayOfWeek this14527 ^java.time.temporal.TemporalField java-time-temporal-TemporalField14528] (.isSupported this14527 java-time-temporal-TemporalField14528))) 25 | (clojure.core/defn hash-code {:arglists (quote (["java.time.DayOfWeek"]))} (^java.lang.Integer [^java.time.DayOfWeek this14529] (.hashCode this14529))) 26 | (clojure.core/defn adjust-into {:arglists (quote (["java.time.DayOfWeek" "java.time.temporal.Temporal"]))} (^java.time.temporal.Temporal [^java.time.DayOfWeek this14530 ^java.time.temporal.Temporal java-time-temporal-Temporal14531] (.adjustInto this14530 java-time-temporal-Temporal14531))) 27 | (clojure.core/defn compare-to {:arglists (quote (["java.time.DayOfWeek" "java.lang.Enum"]))} (^java.lang.Integer [^java.time.DayOfWeek this14532 ^java.lang.Enum java-lang-Enum14533] (.compareTo this14532 java-lang-Enum14533))) 28 | (clojure.core/defn get {:arglists (quote (["java.time.DayOfWeek" "java.time.temporal.TemporalField"]))} (^java.lang.Integer [^java.time.DayOfWeek this14534 ^java.time.temporal.TemporalField java-time-temporal-TemporalField14535] (.get this14534 java-time-temporal-TemporalField14535))) 29 | (clojure.core/defn equals {:arglists (quote (["java.time.DayOfWeek" "java.lang.Object"]))} (^java.lang.Boolean [^java.time.DayOfWeek this14536 ^java.lang.Object java-lang-Object14537] (.equals this14536 java-lang-Object14537))) 30 | -------------------------------------------------------------------------------- /src/cljc/java_time/day_of_week.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.day-of-week (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time :refer [DayOfWeek]])) 2 | (def saturday (goog.object/get java.time.DayOfWeek "SATURDAY")) 3 | (def thursday (goog.object/get java.time.DayOfWeek "THURSDAY")) 4 | (def friday (goog.object/get java.time.DayOfWeek "FRIDAY")) 5 | (def wednesday (goog.object/get java.time.DayOfWeek "WEDNESDAY")) 6 | (def sunday (goog.object/get java.time.DayOfWeek "SUNDAY")) 7 | (def monday (goog.object/get java.time.DayOfWeek "MONDAY")) 8 | (def tuesday (goog.object/get java.time.DayOfWeek "TUESDAY")) 9 | (clojure.core/defn range {:arglists (quote (["java.time.DayOfWeek" "java.time.temporal.TemporalField"]))} (^js/JSJoda.ValueRange [^js/JSJoda.DayOfWeek this14538 ^js/JSJoda.TemporalField java-time-temporal-TemporalField14539] (.range this14538 java-time-temporal-TemporalField14539))) 10 | (clojure.core/defn values {:arglists (quote ([]))} (^"java.lang.Class" [] (js-invoke java.time.DayOfWeek "values"))) 11 | (clojure.core/defn value-of {:arglists (quote (["java.lang.String"] ["java.lang.Class" "java.lang.String"]))} (^js/JSJoda.DayOfWeek [^java.lang.String java-lang-String14540] (js-invoke java.time.DayOfWeek "valueOf" java-lang-String14540)) (^java.lang.Enum [^java.lang.Class java-lang-Class14541 ^java.lang.String java-lang-String14542] (js-invoke java.time.DayOfWeek "valueOf" java-lang-Class14541 java-lang-String14542))) 12 | (clojure.core/defn of {:arglists (quote (["int"]))} (^js/JSJoda.DayOfWeek [^int int14543] (js-invoke java.time.DayOfWeek "of" int14543))) 13 | (clojure.core/defn ordinal {:arglists (quote (["java.time.DayOfWeek"]))} (^int [^js/JSJoda.DayOfWeek this14544] (.ordinal this14544))) 14 | (clojure.core/defn plus {:arglists (quote (["java.time.DayOfWeek" "long"]))} (^js/JSJoda.DayOfWeek [^js/JSJoda.DayOfWeek this14545 ^long long14546] (.plus this14545 long14546))) 15 | (clojure.core/defn query {:arglists (quote (["java.time.DayOfWeek" "java.time.temporal.TemporalQuery"]))} (^java.lang.Object [^js/JSJoda.DayOfWeek this14547 ^js/JSJoda.TemporalQuery java-time-temporal-TemporalQuery14548] (.query this14547 java-time-temporal-TemporalQuery14548))) 16 | (clojure.core/defn to-string {:arglists (quote (["java.time.DayOfWeek"]))} (^java.lang.String [^js/JSJoda.DayOfWeek this14549] (.toString this14549))) 17 | (clojure.core/defn minus {:arglists (quote (["java.time.DayOfWeek" "long"]))} (^js/JSJoda.DayOfWeek [^js/JSJoda.DayOfWeek this14550 ^long long14551] (.minus this14550 long14551))) 18 | (clojure.core/defn get-display-name {:arglists (quote (["java.time.DayOfWeek" "java.time.format.TextStyle" "java.util.Locale"]))} (^java.lang.String [^js/JSJoda.DayOfWeek this14552 ^js/JSJoda.TextStyle java-time-format-TextStyle14553 ^java.util.Locale java-util-Locale14554] (.displayName this14552 java-time-format-TextStyle14553 java-util-Locale14554))) 19 | (clojure.core/defn get-value {:arglists (quote (["java.time.DayOfWeek"]))} (^int [^js/JSJoda.DayOfWeek this14555] (.value this14555))) 20 | (clojure.core/defn name {:arglists (quote (["java.time.DayOfWeek"]))} (^java.lang.String [^js/JSJoda.DayOfWeek this14556] (.name this14556))) 21 | (clojure.core/defn get-long {:arglists (quote (["java.time.DayOfWeek" "java.time.temporal.TemporalField"]))} (^long [^js/JSJoda.DayOfWeek this14557 ^js/JSJoda.TemporalField java-time-temporal-TemporalField14558] (.getLong this14557 java-time-temporal-TemporalField14558))) 22 | (clojure.core/defn get-declaring-class {:arglists (quote (["java.time.DayOfWeek"]))} (^java.lang.Class [^js/JSJoda.DayOfWeek this14559] (.declaringClass this14559))) 23 | (clojure.core/defn from {:arglists (quote (["java.time.temporal.TemporalAccessor"]))} (^js/JSJoda.DayOfWeek [^js/JSJoda.TemporalAccessor java-time-temporal-TemporalAccessor14560] (js-invoke java.time.DayOfWeek "from" java-time-temporal-TemporalAccessor14560))) 24 | (clojure.core/defn is-supported {:arglists (quote (["java.time.DayOfWeek" "java.time.temporal.TemporalField"]))} (^boolean [^js/JSJoda.DayOfWeek this14561 ^js/JSJoda.TemporalField java-time-temporal-TemporalField14562] (.isSupported this14561 java-time-temporal-TemporalField14562))) 25 | (clojure.core/defn hash-code {:arglists (quote (["java.time.DayOfWeek"]))} (^int [^js/JSJoda.DayOfWeek this14563] (.hashCode this14563))) 26 | (clojure.core/defn adjust-into {:arglists (quote (["java.time.DayOfWeek" "java.time.temporal.Temporal"]))} (^js/JSJoda.Temporal [^js/JSJoda.DayOfWeek this14564 ^js/JSJoda.Temporal java-time-temporal-Temporal14565] (.adjustInto this14564 java-time-temporal-Temporal14565))) 27 | (clojure.core/defn compare-to {:arglists (quote (["java.time.DayOfWeek" "java.lang.Enum"]))} (^int [^js/JSJoda.DayOfWeek this14566 ^java.lang.Enum java-lang-Enum14567] (.compareTo this14566 java-lang-Enum14567))) 28 | (clojure.core/defn get {:arglists (quote (["java.time.DayOfWeek" "java.time.temporal.TemporalField"]))} (^int [^js/JSJoda.DayOfWeek this14568 ^js/JSJoda.TemporalField java-time-temporal-TemporalField14569] (.get this14568 java-time-temporal-TemporalField14569))) 29 | (clojure.core/defn equals {:arglists (quote (["java.time.DayOfWeek" "java.lang.Object"]))} (^boolean [^js/JSJoda.DayOfWeek this14570 ^java.lang.Object java-lang-Object14571] (.equals this14570 java-lang-Object14571))) 30 | -------------------------------------------------------------------------------- /src/cljc/java_time/zone_offset.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.zone-offset (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time :refer [ZoneOffset]])) 2 | (def max (goog.object/get java.time.ZoneOffset "MAX")) 3 | (def min (goog.object/get java.time.ZoneOffset "MIN")) 4 | (def utc (goog.object/get java.time.ZoneOffset "UTC")) 5 | (clojure.core/defn get-available-zone-ids {:arglists (quote ([]))} (^java.util.Set [] (js-invoke java.time.ZoneOffset "getAvailableZoneIds"))) 6 | (clojure.core/defn range {:arglists (quote (["java.time.ZoneOffset" "java.time.temporal.TemporalField"]))} (^js/JSJoda.ValueRange [^js/JSJoda.ZoneOffset this15444 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15445] (.range this15444 java-time-temporal-TemporalField15445))) 7 | (clojure.core/defn of-total-seconds {:arglists (quote (["int"]))} (^js/JSJoda.ZoneOffset [^int int15446] (js-invoke java.time.ZoneOffset "ofTotalSeconds" int15446))) 8 | (clojure.core/defn of {:arglists (quote (["java.lang.String"] ["java.lang.String" "java.util.Map"] ["java.lang.String"]))} (^java.lang.Object [G__15448] (js-invoke java.time.ZoneOffset "of" G__15448)) (^js/JSJoda.ZoneId [^java.lang.String java-lang-String15449 ^java.util.Map java-util-Map15450] (js-invoke java.time.ZoneOffset "of" java-lang-String15449 java-util-Map15450))) 9 | (clojure.core/defn of-offset {:arglists (quote (["java.lang.String" "java.time.ZoneOffset"]))} (^js/JSJoda.ZoneId [^java.lang.String java-lang-String15451 ^js/JSJoda.ZoneOffset java-time-ZoneOffset15452] (js-invoke java.time.ZoneOffset "ofOffset" java-lang-String15451 java-time-ZoneOffset15452))) 10 | (clojure.core/defn query {:arglists (quote (["java.time.ZoneOffset" "java.time.temporal.TemporalQuery"]))} (^java.lang.Object [^js/JSJoda.ZoneOffset this15453 ^js/JSJoda.TemporalQuery java-time-temporal-TemporalQuery15454] (.query this15453 java-time-temporal-TemporalQuery15454))) 11 | (clojure.core/defn to-string {:arglists (quote (["java.time.ZoneOffset"]))} (^java.lang.String [^js/JSJoda.ZoneOffset this15455] (.toString this15455))) 12 | (clojure.core/defn get-display-name {:arglists (quote (["java.time.ZoneOffset" "java.time.format.TextStyle" "java.util.Locale"]))} (^java.lang.String [^js/JSJoda.ZoneOffset this15456 ^js/JSJoda.TextStyle java-time-format-TextStyle15457 ^java.util.Locale java-util-Locale15458] (.displayName this15456 java-time-format-TextStyle15457 java-util-Locale15458))) 13 | (clojure.core/defn get-long {:arglists (quote (["java.time.ZoneOffset" "java.time.temporal.TemporalField"]))} (^long [^js/JSJoda.ZoneOffset this15459 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15460] (.getLong this15459 java-time-temporal-TemporalField15460))) 14 | (clojure.core/defn get-rules {:arglists (quote (["java.time.ZoneOffset"]))} (^js/JSJoda.ZoneRules [^js/JSJoda.ZoneOffset this15461] (.rules this15461))) 15 | (clojure.core/defn of-hours {:arglists (quote (["int"]))} (^js/JSJoda.ZoneOffset [^int int15462] (js-invoke java.time.ZoneOffset "ofHours" int15462))) 16 | (clojure.core/defn get-id {:arglists (quote (["java.time.ZoneOffset"]))} (^java.lang.String [^js/JSJoda.ZoneOffset this15463] (.id this15463))) 17 | (clojure.core/defn normalized {:arglists (quote (["java.time.ZoneOffset"]))} (^js/JSJoda.ZoneId [^js/JSJoda.ZoneOffset this15464] (.normalized this15464))) 18 | (clojure.core/defn system-default {:arglists (quote ([]))} (^js/JSJoda.ZoneId [] (js-invoke java.time.ZoneOffset "systemDefault"))) 19 | (clojure.core/defn from {:arglists (quote (["java.time.temporal.TemporalAccessor"] ["java.time.temporal.TemporalAccessor"]))} (^java.lang.Object [G__15466] (js-invoke java.time.ZoneOffset "from" G__15466))) 20 | (clojure.core/defn of-hours-minutes-seconds {:arglists (quote (["int" "int" "int"]))} (^js/JSJoda.ZoneOffset [^int int15467 ^int int15468 ^int int15469] (js-invoke java.time.ZoneOffset "ofHoursMinutesSeconds" int15467 int15468 int15469))) 21 | (clojure.core/defn is-supported {:arglists (quote (["java.time.ZoneOffset" "java.time.temporal.TemporalField"]))} (^boolean [^js/JSJoda.ZoneOffset this15470 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15471] (.isSupported this15470 java-time-temporal-TemporalField15471))) 22 | (clojure.core/defn hash-code {:arglists (quote (["java.time.ZoneOffset"]))} (^int [^js/JSJoda.ZoneOffset this15472] (.hashCode this15472))) 23 | (clojure.core/defn get-total-seconds {:arglists (quote (["java.time.ZoneOffset"]))} (^int [^js/JSJoda.ZoneOffset this15473] (.totalSeconds this15473))) 24 | (clojure.core/defn adjust-into {:arglists (quote (["java.time.ZoneOffset" "java.time.temporal.Temporal"]))} (^js/JSJoda.Temporal [^js/JSJoda.ZoneOffset this15474 ^js/JSJoda.Temporal java-time-temporal-Temporal15475] (.adjustInto this15474 java-time-temporal-Temporal15475))) 25 | (clojure.core/defn of-hours-minutes {:arglists (quote (["int" "int"]))} (^js/JSJoda.ZoneOffset [^int int15476 ^int int15477] (js-invoke java.time.ZoneOffset "ofHoursMinutes" int15476 int15477))) 26 | (clojure.core/defn compare-to {:arglists (quote (["java.time.ZoneOffset" "java.time.ZoneOffset"]))} (^int [^js/JSJoda.ZoneOffset this15478 ^js/JSJoda.ZoneOffset java-time-ZoneOffset15479] (.compareTo this15478 java-time-ZoneOffset15479))) 27 | (clojure.core/defn get {:arglists (quote (["java.time.ZoneOffset" "java.time.temporal.TemporalField"]))} (^int [^js/JSJoda.ZoneOffset this15480 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15481] (.get this15480 java-time-temporal-TemporalField15481))) 28 | (clojure.core/defn equals {:arglists (quote (["java.time.ZoneOffset" "java.lang.Object"]))} (^boolean [^js/JSJoda.ZoneOffset this15482 ^java.lang.Object java-lang-Object15483] (.equals this15482 java-lang-Object15483))) 29 | -------------------------------------------------------------------------------- /dev/gen.clj: -------------------------------------------------------------------------------- 1 | (ns gen 2 | (:require [clojure.reflect :as rf] 3 | [clojure.set :as set] 4 | [defwrapper :as df] 5 | [clojure.string :as string] 6 | [camel-snake-kebab.core :as csk] 7 | [clojure.java.io :as io]) 8 | (:import [java.time Period 9 | LocalDate 10 | LocalTime 11 | LocalDateTime 12 | ZonedDateTime 13 | OffsetTime 14 | Instant 15 | OffsetDateTime 16 | ZoneId 17 | ZoneOffset 18 | DayOfWeek 19 | LocalTime 20 | Month 21 | MonthDay 22 | Duration 23 | Year 24 | YearMonth 25 | Clock 26 | ZoneOffset] 27 | [java.time.format DateTimeFormatter 28 | DateTimeFormatterBuilder 29 | ResolverStyle 30 | DecimalStyle 31 | SignStyle 32 | TextStyle] 33 | [java.time.temporal TemporalAdjusters 34 | Temporal 35 | TemporalAmount 36 | ChronoUnit 37 | ChronoField 38 | IsoFields 39 | TemporalAccessor 40 | TemporalAdjuster 41 | TemporalQuery 42 | TemporalQueries 43 | TemporalUnit 44 | ValueRange 45 | TemporalField WeekFields])) 46 | 47 | (defn header [class-name ns-name sub-p ext] 48 | (let [req 49 | (cond-> 50 | [:require 51 | ['cljc.java-time.extn.calendar-awareness]] 52 | (= :cljs ext) (conj [(symbol "goog.object")] [(symbol (str "java.time" (when sub-p (str "." sub-p)))) :refer [class-name]]) 53 | :always seq)] 54 | (cond-> (vector 'ns (symbol (str "cljc.java-time." (when sub-p (str sub-p ".")) ns-name)) 55 | (list :refer-clojure :exclude ['abs 'get 'range 'format 'min 'max 'next 'name 'resolve 'short]) 56 | req) 57 | (= :clj ext) (conj (list :import [(symbol (str "java.time" (when sub-p (str "." sub-p)))) class-name])) 58 | :always seq))) 59 | 60 | ;(header 'Instant "foo" nil :cljs) 61 | 62 | (defn type-hint [x] 63 | (let [x (string/replace (str x) "<>" "")] 64 | (when (or (clojure.string/includes? x ".") 65 | ;(#{"long" "double"} x) 66 | ) 67 | (symbol (str "^" x))))) 68 | 69 | (defn gen-for-class [c sub-p ext] 70 | ;; header 71 | (println (header (.getSimpleName c) (csk/->kebab-case (.getSimpleName c)) 72 | sub-p ext)) 73 | ;; fields 74 | (doseq [m (:members (rf/reflect c))] 75 | (when (and (not (:parameter-types m)) (not-empty (set/intersection #{:public} (:flags m)))) 76 | (println 77 | (list 'def (csk/->kebab-case (:name m)) 78 | (if (= :clj ext) 79 | (symbol (str (.getName c) "/" (:name m))) 80 | (list 'goog.object/get c (str "\"" (:name m) "\""))))))) 81 | ;; methods 82 | (doseq [f (df/defwrapper c ext)] 83 | (let [f (if (= 'is-leap (second f)) 84 | '(clojure.core/defn is-leap {:arglists (quote (["long"]))} 85 | (^java.lang.Boolean [^long long57050] (. java.time.Year isLeap long57050))) 86 | f)] 87 | (pr f)) 88 | (println))) 89 | 90 | (defn get-and-write [c ext sub-p] 91 | (let [f (str "./src/cljc/java_time/" (when sub-p (str sub-p "/")) (csk/->snake_case (.getSimpleName c)) "." (name ext)) 92 | _ (io/make-parents f) 93 | w (io/writer f)] 94 | (binding [*out* w] 95 | (gen-for-class c sub-p ext)))) 96 | 97 | (defn generate-library-code! [] 98 | ;todo - chrono and zone packages. needs cljs.java-time also 99 | (binding [*print-meta* true] 100 | (doseq [c [Period 101 | LocalDate 102 | LocalDateTime 103 | ZonedDateTime 104 | OffsetTime 105 | Instant 106 | OffsetDateTime 107 | ZoneId 108 | DayOfWeek 109 | LocalTime 110 | Month 111 | MonthDay 112 | Duration 113 | Year 114 | YearMonth 115 | Clock 116 | ZoneOffset]] 117 | (get-and-write c :clj nil) 118 | (get-and-write c :cljs nil)) 119 | (doseq [c [TemporalAdjusters 120 | Temporal 121 | TemporalAmount 122 | ChronoUnit 123 | ChronoField 124 | IsoFields 125 | WeekFields 126 | TemporalAccessor 127 | TemporalAdjuster 128 | TemporalQuery 129 | TemporalQueries 130 | TemporalUnit 131 | ValueRange 132 | TemporalField]] 133 | (get-and-write c :clj "temporal") 134 | (get-and-write c :cljs "temporal")) 135 | (doseq [c [DateTimeFormatter 136 | DateTimeFormatterBuilder 137 | ResolverStyle 138 | DecimalStyle 139 | SignStyle 140 | TextStyle]] 141 | (get-and-write c :clj "format") 142 | (get-and-write c :cljs "format")))) 143 | 144 | (comment 145 | 146 | (generate-library-code!) 147 | 148 | (require '[clojure.tools.namespace.repl :as rep]) 149 | (rep/refresh-all) 150 | 151 | ) 152 | -------------------------------------------------------------------------------- /src/cljc/java_time/month_day.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.month-day (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time :refer [MonthDay]])) 2 | (clojure.core/defn at-year {:arglists (quote (["java.time.MonthDay" "int"]))} (^js/JSJoda.LocalDate [^js/JSJoda.MonthDay this14890 ^int int14891] (.atYear this14890 int14891))) 3 | (clojure.core/defn range {:arglists (quote (["java.time.MonthDay" "java.time.temporal.TemporalField"]))} (^js/JSJoda.ValueRange [^js/JSJoda.MonthDay this14892 ^js/JSJoda.TemporalField java-time-temporal-TemporalField14893] (.range this14892 java-time-temporal-TemporalField14893))) 4 | (clojure.core/defn of {:arglists (quote (["int" "int"] ["java.time.Month" "int"]))} (^js/JSJoda.MonthDay [G__14895 G__14896] (js-invoke java.time.MonthDay "of" G__14895 G__14896))) 5 | (clojure.core/defn with-month {:arglists (quote (["java.time.MonthDay" "int"]))} (^js/JSJoda.MonthDay [^js/JSJoda.MonthDay this14897 ^int int14898] (.withMonth this14897 int14898))) 6 | (clojure.core/defn query {:arglists (quote (["java.time.MonthDay" "java.time.temporal.TemporalQuery"]))} (^java.lang.Object [^js/JSJoda.MonthDay this14899 ^js/JSJoda.TemporalQuery java-time-temporal-TemporalQuery14900] (.query this14899 java-time-temporal-TemporalQuery14900))) 7 | (clojure.core/defn to-string {:arglists (quote (["java.time.MonthDay"]))} (^java.lang.String [^js/JSJoda.MonthDay this14901] (.toString this14901))) 8 | (clojure.core/defn is-before {:arglists (quote (["java.time.MonthDay" "java.time.MonthDay"]))} (^boolean [^js/JSJoda.MonthDay this14902 ^js/JSJoda.MonthDay java-time-MonthDay14903] (.isBefore this14902 java-time-MonthDay14903))) 9 | (clojure.core/defn get-long {:arglists (quote (["java.time.MonthDay" "java.time.temporal.TemporalField"]))} (^long [^js/JSJoda.MonthDay this14904 ^js/JSJoda.TemporalField java-time-temporal-TemporalField14905] (.getLong this14904 java-time-temporal-TemporalField14905))) 10 | (clojure.core/defn with-day-of-month {:arglists (quote (["java.time.MonthDay" "int"]))} (^js/JSJoda.MonthDay [^js/JSJoda.MonthDay this14906 ^int int14907] (.withDayOfMonth this14906 int14907))) 11 | (clojure.core/defn get-day-of-month {:arglists (quote (["java.time.MonthDay"]))} (^int [^js/JSJoda.MonthDay this14908] (.dayOfMonth this14908))) 12 | (clojure.core/defn from {:arglists (quote (["java.time.temporal.TemporalAccessor"]))} (^js/JSJoda.MonthDay [^js/JSJoda.TemporalAccessor java-time-temporal-TemporalAccessor14909] (js-invoke java.time.MonthDay "from" java-time-temporal-TemporalAccessor14909))) 13 | (clojure.core/defn is-after {:arglists (quote (["java.time.MonthDay" "java.time.MonthDay"]))} (^boolean [^js/JSJoda.MonthDay this14910 ^js/JSJoda.MonthDay java-time-MonthDay14911] (.isAfter this14910 java-time-MonthDay14911))) 14 | (clojure.core/defn is-supported {:arglists (quote (["java.time.MonthDay" "java.time.temporal.TemporalField"]))} (^boolean [^js/JSJoda.MonthDay this14912 ^js/JSJoda.TemporalField java-time-temporal-TemporalField14913] (.isSupported this14912 java-time-temporal-TemporalField14913))) 15 | (clojure.core/defn parse {:arglists (quote (["java.lang.CharSequence" "java.time.format.DateTimeFormatter"] ["java.lang.CharSequence"]))} (^js/JSJoda.MonthDay [^java.lang.CharSequence java-lang-CharSequence14914 ^js/JSJoda.DateTimeFormatter java-time-format-DateTimeFormatter14915] (js-invoke java.time.MonthDay "parse" java-lang-CharSequence14914 java-time-format-DateTimeFormatter14915)) (^js/JSJoda.MonthDay [^java.lang.CharSequence java-lang-CharSequence14916] (js-invoke java.time.MonthDay "parse" java-lang-CharSequence14916))) 16 | (clojure.core/defn is-valid-year {:arglists (quote (["java.time.MonthDay" "int"]))} (^boolean [^js/JSJoda.MonthDay this14917 ^int int14918] (.isValidYear this14917 int14918))) 17 | (clojure.core/defn hash-code {:arglists (quote (["java.time.MonthDay"]))} (^int [^js/JSJoda.MonthDay this14919] (.hashCode this14919))) 18 | (clojure.core/defn adjust-into {:arglists (quote (["java.time.MonthDay" "java.time.temporal.Temporal"]))} (^js/JSJoda.Temporal [^js/JSJoda.MonthDay this14920 ^js/JSJoda.Temporal java-time-temporal-Temporal14921] (.adjustInto this14920 java-time-temporal-Temporal14921))) 19 | (clojure.core/defn with {:arglists (quote (["java.time.MonthDay" "java.time.Month"]))} (^js/JSJoda.MonthDay [^js/JSJoda.MonthDay this14922 ^js/JSJoda.Month java-time-Month14923] (.with this14922 java-time-Month14923))) 20 | (clojure.core/defn now {:arglists (quote (["java.time.ZoneId"] ["java.time.Clock"] []))} (^js/JSJoda.MonthDay [G__14925] (js-invoke java.time.MonthDay "now" G__14925)) (^js/JSJoda.MonthDay [] (js-invoke java.time.MonthDay "now"))) 21 | (clojure.core/defn get-month-value {:arglists (quote (["java.time.MonthDay"]))} (^int [^js/JSJoda.MonthDay this14926] (.monthValue this14926))) 22 | (clojure.core/defn compare-to {:arglists (quote (["java.time.MonthDay" "java.time.MonthDay"]))} (^int [^js/JSJoda.MonthDay this14927 ^js/JSJoda.MonthDay java-time-MonthDay14928] (.compareTo this14927 java-time-MonthDay14928))) 23 | (clojure.core/defn get-month {:arglists (quote (["java.time.MonthDay"]))} (^js/JSJoda.Month [^js/JSJoda.MonthDay this14929] (.month this14929))) 24 | (clojure.core/defn get {:arglists (quote (["java.time.MonthDay" "java.time.temporal.TemporalField"]))} (^int [^js/JSJoda.MonthDay this14930 ^js/JSJoda.TemporalField java-time-temporal-TemporalField14931] (.get this14930 java-time-temporal-TemporalField14931))) 25 | (clojure.core/defn equals {:arglists (quote (["java.time.MonthDay" "java.lang.Object"]))} (^boolean [^js/JSJoda.MonthDay this14932 ^java.lang.Object java-lang-Object14933] (.equals this14932 java-lang-Object14933))) 26 | (clojure.core/defn format {:arglists (quote (["java.time.MonthDay" "java.time.format.DateTimeFormatter"]))} (^java.lang.String [^js/JSJoda.MonthDay this14934 ^js/JSJoda.DateTimeFormatter java-time-format-DateTimeFormatter14935] (.format this14934 java-time-format-DateTimeFormatter14935))) 27 | -------------------------------------------------------------------------------- /src/cljc/java_time/month.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.month (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time Month])) 2 | (def may java.time.Month/MAY) 3 | (def december java.time.Month/DECEMBER) 4 | (def june java.time.Month/JUNE) 5 | (def september java.time.Month/SEPTEMBER) 6 | (def february java.time.Month/FEBRUARY) 7 | (def january java.time.Month/JANUARY) 8 | (def november java.time.Month/NOVEMBER) 9 | (def august java.time.Month/AUGUST) 10 | (def july java.time.Month/JULY) 11 | (def march java.time.Month/MARCH) 12 | (def october java.time.Month/OCTOBER) 13 | (def april java.time.Month/APRIL) 14 | (clojure.core/defn range {:arglists (quote (["java.time.Month" "java.time.temporal.TemporalField"]))} (^java.time.temporal.ValueRange [^java.time.Month this14762 ^java.time.temporal.TemporalField java-time-temporal-TemporalField14763] (.range this14762 java-time-temporal-TemporalField14763))) 15 | (clojure.core/defn values {:arglists (quote ([]))} (^"java.lang.Class" [] (java.time.Month/values))) 16 | (clojure.core/defn value-of {:arglists (quote (["java.lang.String"] ["java.lang.Class" "java.lang.String"]))} (^java.time.Month [^java.lang.String java-lang-String14764] (java.time.Month/valueOf java-lang-String14764)) (^java.lang.Enum [^java.lang.Class java-lang-Class14765 ^java.lang.String java-lang-String14766] (java.time.Month/valueOf java-lang-Class14765 java-lang-String14766))) 17 | (clojure.core/defn of {:arglists (quote (["int"]))} (^java.time.Month [^java.lang.Integer int14767] (java.time.Month/of int14767))) 18 | (clojure.core/defn ordinal {:arglists (quote (["java.time.Month"]))} (^java.lang.Integer [^java.time.Month this14768] (.ordinal this14768))) 19 | (clojure.core/defn first-month-of-quarter {:arglists (quote (["java.time.Month"]))} (^java.time.Month [^java.time.Month this14769] (.firstMonthOfQuarter this14769))) 20 | (clojure.core/defn min-length {:arglists (quote (["java.time.Month"]))} (^java.lang.Integer [^java.time.Month this14770] (.minLength this14770))) 21 | (clojure.core/defn plus {:arglists (quote (["java.time.Month" "long"]))} (^java.time.Month [^java.time.Month this14771 ^long long14772] (.plus this14771 long14772))) 22 | (clojure.core/defn query {:arglists (quote (["java.time.Month" "java.time.temporal.TemporalQuery"]))} (^java.lang.Object [^java.time.Month this14773 ^java.time.temporal.TemporalQuery java-time-temporal-TemporalQuery14774] (.query this14773 java-time-temporal-TemporalQuery14774))) 23 | (clojure.core/defn to-string {:arglists (quote (["java.time.Month"]))} (^java.lang.String [^java.time.Month this14775] (.toString this14775))) 24 | (clojure.core/defn first-day-of-year {:arglists (quote (["java.time.Month" "boolean"]))} (^java.lang.Integer [^java.time.Month this14776 ^java.lang.Boolean boolean14777] (.firstDayOfYear this14776 boolean14777))) 25 | (clojure.core/defn minus {:arglists (quote (["java.time.Month" "long"]))} (^java.time.Month [^java.time.Month this14778 ^long long14779] (.minus this14778 long14779))) 26 | (clojure.core/defn get-display-name {:arglists (quote (["java.time.Month" "java.time.format.TextStyle" "java.util.Locale"]))} (^java.lang.String [^java.time.Month this14780 ^java.time.format.TextStyle java-time-format-TextStyle14781 ^java.util.Locale java-util-Locale14782] (.getDisplayName this14780 java-time-format-TextStyle14781 java-util-Locale14782))) 27 | (clojure.core/defn get-value {:arglists (quote (["java.time.Month"]))} (^java.lang.Integer [^java.time.Month this14783] (.getValue this14783))) 28 | (clojure.core/defn max-length {:arglists (quote (["java.time.Month"]))} (^java.lang.Integer [^java.time.Month this14784] (.maxLength this14784))) 29 | (clojure.core/defn name {:arglists (quote (["java.time.Month"]))} (^java.lang.String [^java.time.Month this14785] (.name this14785))) 30 | (clojure.core/defn get-long {:arglists (quote (["java.time.Month" "java.time.temporal.TemporalField"]))} (^long [^java.time.Month this14786 ^java.time.temporal.TemporalField java-time-temporal-TemporalField14787] (.getLong this14786 java-time-temporal-TemporalField14787))) 31 | (clojure.core/defn length {:arglists (quote (["java.time.Month" "boolean"]))} (^java.lang.Integer [^java.time.Month this14788 ^java.lang.Boolean boolean14789] (.length this14788 boolean14789))) 32 | (clojure.core/defn get-declaring-class {:arglists (quote (["java.time.Month"]))} (^java.lang.Class [^java.time.Month this14790] (.getDeclaringClass this14790))) 33 | (clojure.core/defn from {:arglists (quote (["java.time.temporal.TemporalAccessor"]))} (^java.time.Month [^java.time.temporal.TemporalAccessor java-time-temporal-TemporalAccessor14791] (java.time.Month/from java-time-temporal-TemporalAccessor14791))) 34 | (clojure.core/defn is-supported {:arglists (quote (["java.time.Month" "java.time.temporal.TemporalField"]))} (^java.lang.Boolean [^java.time.Month this14792 ^java.time.temporal.TemporalField java-time-temporal-TemporalField14793] (.isSupported this14792 java-time-temporal-TemporalField14793))) 35 | (clojure.core/defn hash-code {:arglists (quote (["java.time.Month"]))} (^java.lang.Integer [^java.time.Month this14794] (.hashCode this14794))) 36 | (clojure.core/defn adjust-into {:arglists (quote (["java.time.Month" "java.time.temporal.Temporal"]))} (^java.time.temporal.Temporal [^java.time.Month this14795 ^java.time.temporal.Temporal java-time-temporal-Temporal14796] (.adjustInto this14795 java-time-temporal-Temporal14796))) 37 | (clojure.core/defn compare-to {:arglists (quote (["java.time.Month" "java.lang.Enum"]))} (^java.lang.Integer [^java.time.Month this14797 ^java.lang.Enum java-lang-Enum14798] (.compareTo this14797 java-lang-Enum14798))) 38 | (clojure.core/defn get {:arglists (quote (["java.time.Month" "java.time.temporal.TemporalField"]))} (^java.lang.Integer [^java.time.Month this14799 ^java.time.temporal.TemporalField java-time-temporal-TemporalField14800] (.get this14799 java-time-temporal-TemporalField14800))) 39 | (clojure.core/defn equals {:arglists (quote (["java.time.Month" "java.lang.Object"]))} (^java.lang.Boolean [^java.time.Month this14801 ^java.lang.Object java-lang-Object14802] (.equals this14801 java-lang-Object14802))) 40 | -------------------------------------------------------------------------------- /src/cljc/java_time/month.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.month (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time :refer [Month]])) 2 | (def may (goog.object/get java.time.Month "MAY")) 3 | (def december (goog.object/get java.time.Month "DECEMBER")) 4 | (def june (goog.object/get java.time.Month "JUNE")) 5 | (def september (goog.object/get java.time.Month "SEPTEMBER")) 6 | (def february (goog.object/get java.time.Month "FEBRUARY")) 7 | (def january (goog.object/get java.time.Month "JANUARY")) 8 | (def november (goog.object/get java.time.Month "NOVEMBER")) 9 | (def august (goog.object/get java.time.Month "AUGUST")) 10 | (def july (goog.object/get java.time.Month "JULY")) 11 | (def march (goog.object/get java.time.Month "MARCH")) 12 | (def october (goog.object/get java.time.Month "OCTOBER")) 13 | (def april (goog.object/get java.time.Month "APRIL")) 14 | (clojure.core/defn range {:arglists (quote (["java.time.Month" "java.time.temporal.TemporalField"]))} (^js/JSJoda.ValueRange [^js/JSJoda.Month this14803 ^js/JSJoda.TemporalField java-time-temporal-TemporalField14804] (.range this14803 java-time-temporal-TemporalField14804))) 15 | (clojure.core/defn values {:arglists (quote ([]))} (^"java.lang.Class" [] (js-invoke java.time.Month "values"))) 16 | (clojure.core/defn value-of {:arglists (quote (["java.lang.String"] ["java.lang.Class" "java.lang.String"]))} (^js/JSJoda.Month [^java.lang.String java-lang-String14805] (js-invoke java.time.Month "valueOf" java-lang-String14805)) (^java.lang.Enum [^java.lang.Class java-lang-Class14806 ^java.lang.String java-lang-String14807] (js-invoke java.time.Month "valueOf" java-lang-Class14806 java-lang-String14807))) 17 | (clojure.core/defn of {:arglists (quote (["int"]))} (^js/JSJoda.Month [^int int14808] (js-invoke java.time.Month "of" int14808))) 18 | (clojure.core/defn ordinal {:arglists (quote (["java.time.Month"]))} (^int [^js/JSJoda.Month this14809] (.ordinal this14809))) 19 | (clojure.core/defn first-month-of-quarter {:arglists (quote (["java.time.Month"]))} (^js/JSJoda.Month [^js/JSJoda.Month this14810] (.firstMonthOfQuarter this14810))) 20 | (clojure.core/defn min-length {:arglists (quote (["java.time.Month"]))} (^int [^js/JSJoda.Month this14811] (.minLength this14811))) 21 | (clojure.core/defn plus {:arglists (quote (["java.time.Month" "long"]))} (^js/JSJoda.Month [^js/JSJoda.Month this14812 ^long long14813] (.plus this14812 long14813))) 22 | (clojure.core/defn query {:arglists (quote (["java.time.Month" "java.time.temporal.TemporalQuery"]))} (^java.lang.Object [^js/JSJoda.Month this14814 ^js/JSJoda.TemporalQuery java-time-temporal-TemporalQuery14815] (.query this14814 java-time-temporal-TemporalQuery14815))) 23 | (clojure.core/defn to-string {:arglists (quote (["java.time.Month"]))} (^java.lang.String [^js/JSJoda.Month this14816] (.toString this14816))) 24 | (clojure.core/defn first-day-of-year {:arglists (quote (["java.time.Month" "boolean"]))} (^int [^js/JSJoda.Month this14817 ^boolean boolean14818] (.firstDayOfYear this14817 boolean14818))) 25 | (clojure.core/defn minus {:arglists (quote (["java.time.Month" "long"]))} (^js/JSJoda.Month [^js/JSJoda.Month this14819 ^long long14820] (.minus this14819 long14820))) 26 | (clojure.core/defn get-display-name {:arglists (quote (["java.time.Month" "java.time.format.TextStyle" "java.util.Locale"]))} (^java.lang.String [^js/JSJoda.Month this14821 ^js/JSJoda.TextStyle java-time-format-TextStyle14822 ^java.util.Locale java-util-Locale14823] (.displayName this14821 java-time-format-TextStyle14822 java-util-Locale14823))) 27 | (clojure.core/defn get-value {:arglists (quote (["java.time.Month"]))} (^int [^js/JSJoda.Month this14824] (.value this14824))) 28 | (clojure.core/defn max-length {:arglists (quote (["java.time.Month"]))} (^int [^js/JSJoda.Month this14825] (.maxLength this14825))) 29 | (clojure.core/defn name {:arglists (quote (["java.time.Month"]))} (^java.lang.String [^js/JSJoda.Month this14826] (.name this14826))) 30 | (clojure.core/defn get-long {:arglists (quote (["java.time.Month" "java.time.temporal.TemporalField"]))} (^long [^js/JSJoda.Month this14827 ^js/JSJoda.TemporalField java-time-temporal-TemporalField14828] (.getLong this14827 java-time-temporal-TemporalField14828))) 31 | (clojure.core/defn length {:arglists (quote (["java.time.Month" "boolean"]))} (^int [^js/JSJoda.Month this14829 ^boolean boolean14830] (.length this14829 boolean14830))) 32 | (clojure.core/defn get-declaring-class {:arglists (quote (["java.time.Month"]))} (^java.lang.Class [^js/JSJoda.Month this14831] (.declaringClass this14831))) 33 | (clojure.core/defn from {:arglists (quote (["java.time.temporal.TemporalAccessor"]))} (^js/JSJoda.Month [^js/JSJoda.TemporalAccessor java-time-temporal-TemporalAccessor14832] (js-invoke java.time.Month "from" java-time-temporal-TemporalAccessor14832))) 34 | (clojure.core/defn is-supported {:arglists (quote (["java.time.Month" "java.time.temporal.TemporalField"]))} (^boolean [^js/JSJoda.Month this14833 ^js/JSJoda.TemporalField java-time-temporal-TemporalField14834] (.isSupported this14833 java-time-temporal-TemporalField14834))) 35 | (clojure.core/defn hash-code {:arglists (quote (["java.time.Month"]))} (^int [^js/JSJoda.Month this14835] (.hashCode this14835))) 36 | (clojure.core/defn adjust-into {:arglists (quote (["java.time.Month" "java.time.temporal.Temporal"]))} (^js/JSJoda.Temporal [^js/JSJoda.Month this14836 ^js/JSJoda.Temporal java-time-temporal-Temporal14837] (.adjustInto this14836 java-time-temporal-Temporal14837))) 37 | (clojure.core/defn compare-to {:arglists (quote (["java.time.Month" "java.lang.Enum"]))} (^int [^js/JSJoda.Month this14838 ^java.lang.Enum java-lang-Enum14839] (.compareTo this14838 java-lang-Enum14839))) 38 | (clojure.core/defn get {:arglists (quote (["java.time.Month" "java.time.temporal.TemporalField"]))} (^int [^js/JSJoda.Month this14840 ^js/JSJoda.TemporalField java-time-temporal-TemporalField14841] (.get this14840 java-time-temporal-TemporalField14841))) 39 | (clojure.core/defn equals {:arglists (quote (["java.time.Month" "java.lang.Object"]))} (^boolean [^js/JSJoda.Month this14842 ^java.lang.Object java-lang-Object14843] (.equals this14842 java-lang-Object14843))) 40 | -------------------------------------------------------------------------------- /src/cljc/java_time/zone_offset.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.zone-offset (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time ZoneOffset])) 2 | (def max java.time.ZoneOffset/MAX) 3 | (def min java.time.ZoneOffset/MIN) 4 | (def utc java.time.ZoneOffset/UTC) 5 | (clojure.core/defn get-available-zone-ids {:arglists (quote ([]))} (^java.util.Set [] (java.time.ZoneOffset/getAvailableZoneIds))) 6 | (clojure.core/defn range {:arglists (quote (["java.time.ZoneOffset" "java.time.temporal.TemporalField"]))} (^java.time.temporal.ValueRange [^java.time.ZoneOffset this15404 ^java.time.temporal.TemporalField java-time-temporal-TemporalField15405] (.range this15404 java-time-temporal-TemporalField15405))) 7 | (clojure.core/defn of-total-seconds {:arglists (quote (["int"]))} (^java.time.ZoneOffset [^java.lang.Integer int15406] (java.time.ZoneOffset/ofTotalSeconds int15406))) 8 | (clojure.core/defn of {:arglists (quote (["java.lang.String"] ["java.lang.String" "java.util.Map"] ["java.lang.String"]))} (^java.lang.Object [G__15408] (clojure.core/cond (clojure.core/and (clojure.core/instance? java.lang.String G__15408)) (clojure.core/let [G__15408 ^"java.lang.String" G__15408] (java.time.ZoneOffset/of G__15408)) (clojure.core/and (clojure.core/instance? java.lang.String G__15408)) (clojure.core/let [G__15408 ^"java.lang.String" G__15408] (java.time.ZoneOffset/of G__15408)) :else (throw (java.lang.IllegalArgumentException. "no corresponding java.time method with these args")))) (^java.time.ZoneId [^java.lang.String java-lang-String15409 ^java.util.Map java-util-Map15410] (java.time.ZoneOffset/of java-lang-String15409 java-util-Map15410))) 9 | (clojure.core/defn of-offset {:arglists (quote (["java.lang.String" "java.time.ZoneOffset"]))} (^java.time.ZoneId [^java.lang.String java-lang-String15411 ^java.time.ZoneOffset java-time-ZoneOffset15412] (java.time.ZoneOffset/ofOffset java-lang-String15411 java-time-ZoneOffset15412))) 10 | (clojure.core/defn query {:arglists (quote (["java.time.ZoneOffset" "java.time.temporal.TemporalQuery"]))} (^java.lang.Object [^java.time.ZoneOffset this15413 ^java.time.temporal.TemporalQuery java-time-temporal-TemporalQuery15414] (.query this15413 java-time-temporal-TemporalQuery15414))) 11 | (clojure.core/defn to-string {:arglists (quote (["java.time.ZoneOffset"]))} (^java.lang.String [^java.time.ZoneOffset this15415] (.toString this15415))) 12 | (clojure.core/defn get-display-name {:arglists (quote (["java.time.ZoneOffset" "java.time.format.TextStyle" "java.util.Locale"]))} (^java.lang.String [^java.time.ZoneOffset this15416 ^java.time.format.TextStyle java-time-format-TextStyle15417 ^java.util.Locale java-util-Locale15418] (.getDisplayName this15416 java-time-format-TextStyle15417 java-util-Locale15418))) 13 | (clojure.core/defn get-long {:arglists (quote (["java.time.ZoneOffset" "java.time.temporal.TemporalField"]))} (^long [^java.time.ZoneOffset this15419 ^java.time.temporal.TemporalField java-time-temporal-TemporalField15420] (.getLong this15419 java-time-temporal-TemporalField15420))) 14 | (clojure.core/defn get-rules {:arglists (quote (["java.time.ZoneOffset"]))} (^java.time.zone.ZoneRules [^java.time.ZoneOffset this15421] (.getRules this15421))) 15 | (clojure.core/defn of-hours {:arglists (quote (["int"]))} (^java.time.ZoneOffset [^java.lang.Integer int15422] (java.time.ZoneOffset/ofHours int15422))) 16 | (clojure.core/defn get-id {:arglists (quote (["java.time.ZoneOffset"]))} (^java.lang.String [^java.time.ZoneOffset this15423] (.getId this15423))) 17 | (clojure.core/defn normalized {:arglists (quote (["java.time.ZoneOffset"]))} (^java.time.ZoneId [^java.time.ZoneOffset this15424] (.normalized this15424))) 18 | (clojure.core/defn system-default {:arglists (quote ([]))} (^java.time.ZoneId [] (java.time.ZoneOffset/systemDefault))) 19 | (clojure.core/defn from {:arglists (quote (["java.time.temporal.TemporalAccessor"] ["java.time.temporal.TemporalAccessor"]))} (^java.lang.Object [G__15426] (clojure.core/cond (clojure.core/and (clojure.core/instance? java.time.temporal.TemporalAccessor G__15426)) (clojure.core/let [G__15426 ^"java.time.temporal.TemporalAccessor" G__15426] (java.time.ZoneOffset/from G__15426)) (clojure.core/and (clojure.core/instance? java.time.temporal.TemporalAccessor G__15426)) (clojure.core/let [G__15426 ^"java.time.temporal.TemporalAccessor" G__15426] (java.time.ZoneOffset/from G__15426)) :else (throw (java.lang.IllegalArgumentException. "no corresponding java.time method with these args"))))) 20 | (clojure.core/defn of-hours-minutes-seconds {:arglists (quote (["int" "int" "int"]))} (^java.time.ZoneOffset [^java.lang.Integer int15427 ^java.lang.Integer int15428 ^java.lang.Integer int15429] (java.time.ZoneOffset/ofHoursMinutesSeconds int15427 int15428 int15429))) 21 | (clojure.core/defn is-supported {:arglists (quote (["java.time.ZoneOffset" "java.time.temporal.TemporalField"]))} (^java.lang.Boolean [^java.time.ZoneOffset this15430 ^java.time.temporal.TemporalField java-time-temporal-TemporalField15431] (.isSupported this15430 java-time-temporal-TemporalField15431))) 22 | (clojure.core/defn hash-code {:arglists (quote (["java.time.ZoneOffset"]))} (^java.lang.Integer [^java.time.ZoneOffset this15432] (.hashCode this15432))) 23 | (clojure.core/defn get-total-seconds {:arglists (quote (["java.time.ZoneOffset"]))} (^java.lang.Integer [^java.time.ZoneOffset this15433] (.getTotalSeconds this15433))) 24 | (clojure.core/defn adjust-into {:arglists (quote (["java.time.ZoneOffset" "java.time.temporal.Temporal"]))} (^java.time.temporal.Temporal [^java.time.ZoneOffset this15434 ^java.time.temporal.Temporal java-time-temporal-Temporal15435] (.adjustInto this15434 java-time-temporal-Temporal15435))) 25 | (clojure.core/defn of-hours-minutes {:arglists (quote (["int" "int"]))} (^java.time.ZoneOffset [^java.lang.Integer int15436 ^java.lang.Integer int15437] (java.time.ZoneOffset/ofHoursMinutes int15436 int15437))) 26 | (clojure.core/defn compare-to {:arglists (quote (["java.time.ZoneOffset" "java.time.ZoneOffset"]))} (^java.lang.Integer [^java.time.ZoneOffset this15438 ^java.time.ZoneOffset java-time-ZoneOffset15439] (.compareTo this15438 java-time-ZoneOffset15439))) 27 | (clojure.core/defn get {:arglists (quote (["java.time.ZoneOffset" "java.time.temporal.TemporalField"]))} (^java.lang.Integer [^java.time.ZoneOffset this15440 ^java.time.temporal.TemporalField java-time-temporal-TemporalField15441] (.get this15440 java-time-temporal-TemporalField15441))) 28 | (clojure.core/defn equals {:arglists (quote (["java.time.ZoneOffset" "java.lang.Object"]))} (^java.lang.Boolean [^java.time.ZoneOffset this15442 ^java.lang.Object java-lang-Object15443] (.equals this15442 java-lang-Object15443))) 29 | -------------------------------------------------------------------------------- /src/cljc/java_time/period.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.period (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time :refer [Period]])) 2 | (def zero (goog.object/get java.time.Period "ZERO")) 3 | (clojure.core/defn get-months {:arglists (quote (["java.time.Period"]))} (^int [^js/JSJoda.Period this12987] (.months this12987))) 4 | (clojure.core/defn of-weeks {:arglists (quote (["int"]))} (^js/JSJoda.Period [^int int12988] (js-invoke java.time.Period "ofWeeks" int12988))) 5 | (clojure.core/defn of-days {:arglists (quote (["int"]))} (^js/JSJoda.Period [^int int12989] (js-invoke java.time.Period "ofDays" int12989))) 6 | (clojure.core/defn is-negative {:arglists (quote (["java.time.Period"]))} (^boolean [^js/JSJoda.Period this12990] (.isNegative this12990))) 7 | (clojure.core/defn of {:arglists (quote (["int" "int" "int"]))} (^js/JSJoda.Period [^int int12991 ^int int12992 ^int int12993] (js-invoke java.time.Period "of" int12991 int12992 int12993))) 8 | (clojure.core/defn is-zero {:arglists (quote (["java.time.Period"]))} (^boolean [^js/JSJoda.Period this12994] (.isZero this12994))) 9 | (clojure.core/defn multiplied-by {:arglists (quote (["java.time.Period" "int"]))} (^js/JSJoda.Period [^js/JSJoda.Period this12995 ^int int12996] (.multipliedBy this12995 int12996))) 10 | (clojure.core/defn get-units {:arglists (quote (["java.time.Period"]))} (^java.util.List [^js/JSJoda.Period this12997] (.units this12997))) 11 | (clojure.core/defn with-days {:arglists (quote (["java.time.Period" "int"]))} (^js/JSJoda.Period [^js/JSJoda.Period this12998 ^int int12999] (.withDays this12998 int12999))) 12 | (clojure.core/defn plus {:arglists (quote (["java.time.Period" "java.time.temporal.TemporalAmount"]))} (^js/JSJoda.Period [^js/JSJoda.Period this13000 ^js/JSJoda.TemporalAmount java-time-temporal-TemporalAmount13001] (.plus this13000 java-time-temporal-TemporalAmount13001))) 13 | (clojure.core/defn of-months {:arglists (quote (["int"]))} (^js/JSJoda.Period [^int int13002] (js-invoke java.time.Period "ofMonths" int13002))) 14 | (clojure.core/defn to-string {:arglists (quote (["java.time.Period"]))} (^java.lang.String [^js/JSJoda.Period this13003] (.toString this13003))) 15 | (clojure.core/defn plus-months {:arglists (quote (["java.time.Period" "long"]))} (^js/JSJoda.Period [^js/JSJoda.Period this13004 ^long long13005] (.plusMonths this13004 long13005))) 16 | (clojure.core/defn minus-months {:arglists (quote (["java.time.Period" "long"]))} (^js/JSJoda.Period [^js/JSJoda.Period this13006 ^long long13007] (.minusMonths this13006 long13007))) 17 | (clojure.core/defn minus {:arglists (quote (["java.time.Period" "java.time.temporal.TemporalAmount"]))} (^js/JSJoda.Period [^js/JSJoda.Period this13008 ^js/JSJoda.TemporalAmount java-time-temporal-TemporalAmount13009] (.minus this13008 java-time-temporal-TemporalAmount13009))) 18 | (clojure.core/defn add-to {:arglists (quote (["java.time.Period" "java.time.temporal.Temporal"]))} (^js/JSJoda.Temporal [^js/JSJoda.Period this13010 ^js/JSJoda.Temporal java-time-temporal-Temporal13011] (.addTo this13010 java-time-temporal-Temporal13011))) 19 | (clojure.core/defn to-total-months {:arglists (quote (["java.time.Period"]))} (^long [^js/JSJoda.Period this13012] (.toTotalMonths this13012))) 20 | (clojure.core/defn plus-days {:arglists (quote (["java.time.Period" "long"]))} (^js/JSJoda.Period [^js/JSJoda.Period this13013 ^long long13014] (.plusDays this13013 long13014))) 21 | (clojure.core/defn of-years {:arglists (quote (["int"]))} (^js/JSJoda.Period [^int int13015] (js-invoke java.time.Period "ofYears" int13015))) 22 | (clojure.core/defn get-days {:arglists (quote (["java.time.Period"]))} (^int [^js/JSJoda.Period this13016] (.days this13016))) 23 | (clojure.core/defn negated {:arglists (quote (["java.time.Period"]))} (^js/JSJoda.Period [^js/JSJoda.Period this13017] (.negated this13017))) 24 | (clojure.core/defn get-years {:arglists (quote (["java.time.Period"]))} (^int [^js/JSJoda.Period this13018] (.years this13018))) 25 | (clojure.core/defn with-years {:arglists (quote (["java.time.Period" "int"]))} (^js/JSJoda.Period [^js/JSJoda.Period this13019 ^int int13020] (.withYears this13019 int13020))) 26 | (clojure.core/defn normalized {:arglists (quote (["java.time.Period"]))} (^js/JSJoda.Period [^js/JSJoda.Period this13021] (.normalized this13021))) 27 | (clojure.core/defn with-months {:arglists (quote (["java.time.Period" "int"]))} (^js/JSJoda.Period [^js/JSJoda.Period this13022 ^int int13023] (.withMonths this13022 int13023))) 28 | (clojure.core/defn between {:arglists (quote (["java.time.LocalDate" "java.time.LocalDate"]))} (^js/JSJoda.Period [^js/JSJoda.LocalDate java-time-LocalDate13024 ^js/JSJoda.LocalDate java-time-LocalDate13025] (js-invoke java.time.Period "between" java-time-LocalDate13024 java-time-LocalDate13025))) 29 | (clojure.core/defn from {:arglists (quote (["java.time.temporal.TemporalAmount"]))} (^js/JSJoda.Period [^js/JSJoda.TemporalAmount java-time-temporal-TemporalAmount13026] (js-invoke java.time.Period "from" java-time-temporal-TemporalAmount13026))) 30 | (clojure.core/defn minus-years {:arglists (quote (["java.time.Period" "long"]))} (^js/JSJoda.Period [^js/JSJoda.Period this13027 ^long long13028] (.minusYears this13027 long13028))) 31 | (clojure.core/defn get-chronology {:arglists (quote (["java.time.Period"]))} (^js/JSJoda.IsoChronology [^js/JSJoda.Period this13029] (.chronology this13029))) 32 | (clojure.core/defn parse {:arglists (quote (["java.lang.CharSequence"]))} (^js/JSJoda.Period [^java.lang.CharSequence java-lang-CharSequence13030] (js-invoke java.time.Period "parse" java-lang-CharSequence13030))) 33 | (clojure.core/defn hash-code {:arglists (quote (["java.time.Period"]))} (^int [^js/JSJoda.Period this13031] (.hashCode this13031))) 34 | (clojure.core/defn subtract-from {:arglists (quote (["java.time.Period" "java.time.temporal.Temporal"]))} (^js/JSJoda.Temporal [^js/JSJoda.Period this13032 ^js/JSJoda.Temporal java-time-temporal-Temporal13033] (.subtractFrom this13032 java-time-temporal-Temporal13033))) 35 | (clojure.core/defn get {:arglists (quote (["java.time.Period" "java.time.temporal.TemporalUnit"]))} (^long [^js/JSJoda.Period this13034 ^js/JSJoda.TemporalUnit java-time-temporal-TemporalUnit13035] (.get this13034 java-time-temporal-TemporalUnit13035))) 36 | (clojure.core/defn equals {:arglists (quote (["java.time.Period" "java.lang.Object"]))} (^boolean [^js/JSJoda.Period this13036 ^java.lang.Object java-lang-Object13037] (.equals this13036 java-lang-Object13037))) 37 | (clojure.core/defn plus-years {:arglists (quote (["java.time.Period" "long"]))} (^js/JSJoda.Period [^js/JSJoda.Period this13038 ^long long13039] (.plusYears this13038 long13039))) 38 | (clojure.core/defn minus-days {:arglists (quote (["java.time.Period" "long"]))} (^js/JSJoda.Period [^js/JSJoda.Period this13040 ^long long13041] (.minusDays this13040 long13041))) 39 | -------------------------------------------------------------------------------- /src/cljc/java_time/period.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.period (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time Period])) 2 | (def zero java.time.Period/ZERO) 3 | (clojure.core/defn get-months {:arglists (quote (["java.time.Period"]))} (^java.lang.Integer [^java.time.Period this12932] (.getMonths this12932))) 4 | (clojure.core/defn of-weeks {:arglists (quote (["int"]))} (^java.time.Period [^java.lang.Integer int12933] (java.time.Period/ofWeeks int12933))) 5 | (clojure.core/defn of-days {:arglists (quote (["int"]))} (^java.time.Period [^java.lang.Integer int12934] (java.time.Period/ofDays int12934))) 6 | (clojure.core/defn is-negative {:arglists (quote (["java.time.Period"]))} (^java.lang.Boolean [^java.time.Period this12935] (.isNegative this12935))) 7 | (clojure.core/defn of {:arglists (quote (["int" "int" "int"]))} (^java.time.Period [^java.lang.Integer int12936 ^java.lang.Integer int12937 ^java.lang.Integer int12938] (java.time.Period/of int12936 int12937 int12938))) 8 | (clojure.core/defn is-zero {:arglists (quote (["java.time.Period"]))} (^java.lang.Boolean [^java.time.Period this12939] (.isZero this12939))) 9 | (clojure.core/defn multiplied-by {:arglists (quote (["java.time.Period" "int"]))} (^java.time.Period [^java.time.Period this12940 ^java.lang.Integer int12941] (.multipliedBy this12940 int12941))) 10 | (clojure.core/defn get-units {:arglists (quote (["java.time.Period"]))} (^java.util.List [^java.time.Period this12942] (.getUnits this12942))) 11 | (clojure.core/defn with-days {:arglists (quote (["java.time.Period" "int"]))} (^java.time.Period [^java.time.Period this12943 ^java.lang.Integer int12944] (.withDays this12943 int12944))) 12 | (clojure.core/defn plus {:arglists (quote (["java.time.Period" "java.time.temporal.TemporalAmount"]))} (^java.time.Period [^java.time.Period this12945 ^java.time.temporal.TemporalAmount java-time-temporal-TemporalAmount12946] (.plus this12945 java-time-temporal-TemporalAmount12946))) 13 | (clojure.core/defn of-months {:arglists (quote (["int"]))} (^java.time.Period [^java.lang.Integer int12947] (java.time.Period/ofMonths int12947))) 14 | (clojure.core/defn to-string {:arglists (quote (["java.time.Period"]))} (^java.lang.String [^java.time.Period this12948] (.toString this12948))) 15 | (clojure.core/defn plus-months {:arglists (quote (["java.time.Period" "long"]))} (^java.time.Period [^java.time.Period this12949 ^long long12950] (.plusMonths this12949 long12950))) 16 | (clojure.core/defn minus-months {:arglists (quote (["java.time.Period" "long"]))} (^java.time.Period [^java.time.Period this12951 ^long long12952] (.minusMonths this12951 long12952))) 17 | (clojure.core/defn minus {:arglists (quote (["java.time.Period" "java.time.temporal.TemporalAmount"]))} (^java.time.Period [^java.time.Period this12953 ^java.time.temporal.TemporalAmount java-time-temporal-TemporalAmount12954] (.minus this12953 java-time-temporal-TemporalAmount12954))) 18 | (clojure.core/defn add-to {:arglists (quote (["java.time.Period" "java.time.temporal.Temporal"]))} (^java.time.temporal.Temporal [^java.time.Period this12955 ^java.time.temporal.Temporal java-time-temporal-Temporal12956] (.addTo this12955 java-time-temporal-Temporal12956))) 19 | (clojure.core/defn to-total-months {:arglists (quote (["java.time.Period"]))} (^long [^java.time.Period this12957] (.toTotalMonths this12957))) 20 | (clojure.core/defn plus-days {:arglists (quote (["java.time.Period" "long"]))} (^java.time.Period [^java.time.Period this12958 ^long long12959] (.plusDays this12958 long12959))) 21 | (clojure.core/defn of-years {:arglists (quote (["int"]))} (^java.time.Period [^java.lang.Integer int12960] (java.time.Period/ofYears int12960))) 22 | (clojure.core/defn get-days {:arglists (quote (["java.time.Period"]))} (^java.lang.Integer [^java.time.Period this12961] (.getDays this12961))) 23 | (clojure.core/defn negated {:arglists (quote (["java.time.Period"]))} (^java.time.Period [^java.time.Period this12962] (.negated this12962))) 24 | (clojure.core/defn get-years {:arglists (quote (["java.time.Period"]))} (^java.lang.Integer [^java.time.Period this12963] (.getYears this12963))) 25 | (clojure.core/defn with-years {:arglists (quote (["java.time.Period" "int"]))} (^java.time.Period [^java.time.Period this12964 ^java.lang.Integer int12965] (.withYears this12964 int12965))) 26 | (clojure.core/defn normalized {:arglists (quote (["java.time.Period"]))} (^java.time.Period [^java.time.Period this12966] (.normalized this12966))) 27 | (clojure.core/defn with-months {:arglists (quote (["java.time.Period" "int"]))} (^java.time.Period [^java.time.Period this12967 ^java.lang.Integer int12968] (.withMonths this12967 int12968))) 28 | (clojure.core/defn between {:arglists (quote (["java.time.LocalDate" "java.time.LocalDate"]))} (^java.time.Period [^java.time.LocalDate java-time-LocalDate12969 ^java.time.LocalDate java-time-LocalDate12970] (java.time.Period/between java-time-LocalDate12969 java-time-LocalDate12970))) 29 | (clojure.core/defn from {:arglists (quote (["java.time.temporal.TemporalAmount"]))} (^java.time.Period [^java.time.temporal.TemporalAmount java-time-temporal-TemporalAmount12971] (java.time.Period/from java-time-temporal-TemporalAmount12971))) 30 | (clojure.core/defn minus-years {:arglists (quote (["java.time.Period" "long"]))} (^java.time.Period [^java.time.Period this12972 ^long long12973] (.minusYears this12972 long12973))) 31 | (clojure.core/defn get-chronology {:arglists (quote (["java.time.Period"]))} (^java.time.chrono.IsoChronology [^java.time.Period this12974] (.getChronology this12974))) 32 | (clojure.core/defn parse {:arglists (quote (["java.lang.CharSequence"]))} (^java.time.Period [^java.lang.CharSequence java-lang-CharSequence12975] (java.time.Period/parse java-lang-CharSequence12975))) 33 | (clojure.core/defn hash-code {:arglists (quote (["java.time.Period"]))} (^java.lang.Integer [^java.time.Period this12976] (.hashCode this12976))) 34 | (clojure.core/defn subtract-from {:arglists (quote (["java.time.Period" "java.time.temporal.Temporal"]))} (^java.time.temporal.Temporal [^java.time.Period this12977 ^java.time.temporal.Temporal java-time-temporal-Temporal12978] (.subtractFrom this12977 java-time-temporal-Temporal12978))) 35 | (clojure.core/defn get {:arglists (quote (["java.time.Period" "java.time.temporal.TemporalUnit"]))} (^long [^java.time.Period this12979 ^java.time.temporal.ChronoUnit java-time-temporal-TemporalUnit12980] (.get this12979 java-time-temporal-TemporalUnit12980))) 36 | (clojure.core/defn equals {:arglists (quote (["java.time.Period" "java.lang.Object"]))} (^java.lang.Boolean [^java.time.Period this12981 ^java.lang.Object java-lang-Object12982] (.equals this12981 java-lang-Object12982))) 37 | (clojure.core/defn plus-years {:arglists (quote (["java.time.Period" "long"]))} (^java.time.Period [^java.time.Period this12983 ^long long12984] (.plusYears this12983 long12984))) 38 | (clojure.core/defn minus-days {:arglists (quote (["java.time.Period" "long"]))} (^java.time.Period [^java.time.Period this12985 ^long long12986] (.minusDays this12985 long12986))) 39 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Clojars Project](https://img.shields.io/clojars/v/com.widdindustries/cljc.java-time.svg)](https://clojars.org/com.widdindustries/cljc.java-time) 2 | [![Tests build](https://github.com/henryw374/cljc.java-time/actions/workflows/tests.yaml/badge.svg)](https://github.com/henryw374/cljc.java-time/actions/workflows/tests.yaml) 3 | [![bb compatible](https://raw.githubusercontent.com/babashka/babashka/master/logo/badge.svg)](https://book.babashka.org#badges) 4 | 5 | # cljc.java-time 6 | 7 | A Clojure(Script) library which mirrors the java.time api through kebab-case-named vars. 8 | 9 | The java.time api is augmented with: 10 | * predicate functions for each entity type: `(cljc.java-time.extn.predicates/instant? x)` 11 | * more helpful error messages for unsupported operations on Instants 12 | 13 | This library uses a pure-JS implementation of java.time, see here [for discussion on whether that affects application performance or build size](https://widdindustries.com/clojurescript-datetime-lib-comparison/) 14 | 15 | See [my talk at Clojure/North 2019](https://www.youtube.com/watch?v=UFuL-ZDoB2U) for more background. 16 | 17 | Temporal, the [new JS platform Date-Time lib](https://github.com/tc39/proposal-temporal) 18 | has been considered for use as an alternative basis of this library instead of js-joda, but although it has 19 | some overlap with java.time, Temporal is different enough that implementing cljc.java-time would be very 20 | difficult. For a dependency-free Clojure(Script) date-time API, see [Tempo](https://github.com/henryw374/tempo) 21 | 22 | 23 | ## Related Libraries 24 | 25 | [tick](https://clojars.org/tick) is a higher level date-time library that uses this one. Even if you're using cljc.java-time directly, 26 | ie not through tick, it has very relevant docs on extra [setup for use with ClojureScript](https://github.com/juxt/tick/blob/master/docs/cljs.adoc) 27 | 28 | [time-literals](https://github.com/henryw374/time-literals) is a Clojure(Script) library which provides tagged literals for objects from jsr-310 domain 29 | 30 | ## Rationale 31 | 32 | This library sits atop `java.time` on the jvm and [cljs.java-time](https://github.com/henryw374/cljs.java-time) on Javascript 33 | platforms. Writing cross-platform code that uses those libraries directly is harder than interop normally is because: 34 | 35 | * To call the java.time 'static' methods in a cljc file you need to use the [dot-special-form](https://clojure.org/reference/java_interop#_the_dot_special_form) which is not idiomatic 36 | * The underlying js library has changed the name of the getter methods in java.time (in *almost* all cases) to remove the 'get' part of the name. There are ways to get around that on a case 37 | by case basis, but this library handles it for you. 38 | 39 | ### .. but I just develop on the JVM Only 40 | 41 | Reasons to use this: 42 | 43 | * All type hinting is done for you 44 | * `comp`, `apply`, `juxt` and all other clojure.core fns that apply to fns can now be used without anon fns: `#(.foo %)` 45 | * In fact, instead of seeing `#(.foo %)` in someone's code and not knowing what foo is, you'll have a properly namespaced clojure function `foo` - much better! 46 | * predicates, for example `(local-date? x)` 47 | 48 | ## How it works 49 | 50 | For every class in java.time, there is a clojure namespace. 51 | 52 | For example, corresponding to `java.time.LocalDate`, there is a namespace 53 | 54 | `cljc.java-time.local-date` 55 | 56 | In that and every other namespace, there is one var per public method/field in the corresponding class. 57 | 58 | For example, for the method `java.time.LocalDate/parse`, there is a corresponding function `cljc.java-time.local-date/parse` 59 | 60 | Instance methods take the instance as the extra first arg 61 | 62 | ## Usage 63 | 64 | Clojars badge is at the top of this README 65 | 66 | Version 0.1.9 and up require minimum Clojurescript version of 1.10.741 67 | 68 | If using cljsjs, add [js-joda](https://clojars.org/henryw374/js-joda) and [js-joda-locale-en-us](https://clojars.org/henryw374/js-joda-locale-en-us) to your dependencies as well 69 | 70 | In .cljc file 71 | ```clj 72 | (ns my.cljc 73 | (:require [cljc.java-time.local-date :as ld]) 74 | 75 | ;create a date 76 | (def a-date (ld/parse "2019-01-01")) 77 | 78 | ;add some days 79 | (ld/plus-days a-date 99) 80 | ``` 81 | 82 | Roundtripping with legacy Date 83 | ```clj 84 | 85 | (require '[cljc.java-time.instant :as i]) 86 | 87 | ;cljs 88 | (-> (js/Date.) (.getTime) (i/of-epoch-milli) (i/to-epoch-milli) (js/Date.)) 89 | 90 | ;clj 91 | (-> (Date.) (.getTime) (i/of-epoch-milli) (i/to-epoch-milli) (Date.)) 92 | 93 | ``` 94 | 95 | Here is how to get to a babashka (v 1.2.174+) repl with cljc.java-time: 96 | 97 | ``` 98 | export BABASHKA_CLASSPATH=$(clojure -Spath -Sdeps '{:deps {com.widdindustries/cljc.java-time {:mvn/version "RELEASE"}}}') 99 | 100 | bb 101 | ``` 102 | 103 | 104 | ## Problems & Irregularities 105 | 106 | java.time.Year#isLeap exists as an instance method and a static method. Only the static version has been wrapped. 107 | 108 | ### Inheritance/Polymorphism 109 | The code of this project consists of mechanically generated functions for the java.time methods, even if those methods are 110 | inherited via superclasses or interfaces. In this project, functions are generated in every class they can be applied to. For example there is 111 | `cljc.java-time.temporal.temporal/is-supported` and also `cljc.java-time.local-date/is-supported`, with the latter being 112 | essentially unnecessary but included anyway. 113 | 114 | 115 | ## Note 116 | 117 | ### Java 9 118 | 119 | A couple of new methods were added to `java.time` in Java 9 - these are not included in this library because according 120 | to the [Clojure Survey](https://clojure.org/news/2020/02/20/state-of-clojure-2020) about half 121 | of Clojure users are still on Java 8 :( 122 | 123 | ### ClojureScript 124 | 125 | Be aware that the underlying js implementation is probably only 99% complete. Anything you find missing can be added via pull 126 | request to [js-joda](https://github.com/js-joda/js-joda) 127 | 128 | ## Development 129 | 130 | The code of the project is generated by the `generate-library-code!` function in the 131 | dev/gen.clj namespace. 132 | 133 | ### Clojure and Clojurescript 134 | 135 | To run all tests: 136 | 137 | ``` 138 | make test 139 | ``` 140 | 141 | Start a repl: 142 | 143 | ``` 144 | clj -Adev:test:test-cljs 145 | ``` 146 | 147 | For Clojurescript dev, see the dev/cljs.clj file for functions to start test build 148 | in shadow and run tests. 149 | 150 | ### babashka 151 | 152 | Start babashka as follows 153 | 154 | ``` 155 | deps -A:test -Scommand "bb -cp {{classpath}}" --socket-repl 1666' 156 | ``` 157 | 158 | and run tests from the repl 159 | 160 | one cmd to do this would be preferable 161 | 162 | ## License 163 | 164 | Copyright © 2021 [Widd Industries](http://widdindustries.com/about/) 165 | 166 | Distributed under the [MIT License](/LICENSE) 167 | -------------------------------------------------------------------------------- /src/cljc/java_time/month_day.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.month-day (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time MonthDay])) 2 | (clojure.core/defn at-year {:arglists (quote (["java.time.MonthDay" "int"]))} (^java.time.LocalDate [^java.time.MonthDay this14844 ^java.lang.Integer int14845] (.atYear this14844 int14845))) 3 | (clojure.core/defn range {:arglists (quote (["java.time.MonthDay" "java.time.temporal.TemporalField"]))} (^java.time.temporal.ValueRange [^java.time.MonthDay this14846 ^java.time.temporal.TemporalField java-time-temporal-TemporalField14847] (.range this14846 java-time-temporal-TemporalField14847))) 4 | (clojure.core/defn of {:arglists (quote (["int" "int"] ["java.time.Month" "int"]))} (^java.time.MonthDay [G__14849 G__14850] (clojure.core/cond (clojure.core/and (clojure.core/instance? java.lang.Number G__14849) (clojure.core/instance? java.lang.Number G__14850)) (clojure.core/let [G__14849 (clojure.core/int G__14849) G__14850 (clojure.core/int G__14850)] (java.time.MonthDay/of G__14849 G__14850)) (clojure.core/and (clojure.core/instance? java.time.Month G__14849) (clojure.core/instance? java.lang.Number G__14850)) (clojure.core/let [G__14849 ^"java.time.Month" G__14849 G__14850 (clojure.core/int G__14850)] (java.time.MonthDay/of G__14849 G__14850)) :else (throw (java.lang.IllegalArgumentException. "no corresponding java.time method with these args"))))) 5 | (clojure.core/defn with-month {:arglists (quote (["java.time.MonthDay" "int"]))} (^java.time.MonthDay [^java.time.MonthDay this14851 ^java.lang.Integer int14852] (.withMonth this14851 int14852))) 6 | (clojure.core/defn query {:arglists (quote (["java.time.MonthDay" "java.time.temporal.TemporalQuery"]))} (^java.lang.Object [^java.time.MonthDay this14853 ^java.time.temporal.TemporalQuery java-time-temporal-TemporalQuery14854] (.query this14853 java-time-temporal-TemporalQuery14854))) 7 | (clojure.core/defn to-string {:arglists (quote (["java.time.MonthDay"]))} (^java.lang.String [^java.time.MonthDay this14855] (.toString this14855))) 8 | (clojure.core/defn is-before {:arglists (quote (["java.time.MonthDay" "java.time.MonthDay"]))} (^java.lang.Boolean [^java.time.MonthDay this14856 ^java.time.MonthDay java-time-MonthDay14857] (.isBefore this14856 java-time-MonthDay14857))) 9 | (clojure.core/defn get-long {:arglists (quote (["java.time.MonthDay" "java.time.temporal.TemporalField"]))} (^long [^java.time.MonthDay this14858 ^java.time.temporal.TemporalField java-time-temporal-TemporalField14859] (.getLong this14858 java-time-temporal-TemporalField14859))) 10 | (clojure.core/defn with-day-of-month {:arglists (quote (["java.time.MonthDay" "int"]))} (^java.time.MonthDay [^java.time.MonthDay this14860 ^java.lang.Integer int14861] (.withDayOfMonth this14860 int14861))) 11 | (clojure.core/defn get-day-of-month {:arglists (quote (["java.time.MonthDay"]))} (^java.lang.Integer [^java.time.MonthDay this14862] (.getDayOfMonth this14862))) 12 | (clojure.core/defn from {:arglists (quote (["java.time.temporal.TemporalAccessor"]))} (^java.time.MonthDay [^java.time.temporal.TemporalAccessor java-time-temporal-TemporalAccessor14863] (java.time.MonthDay/from java-time-temporal-TemporalAccessor14863))) 13 | (clojure.core/defn is-after {:arglists (quote (["java.time.MonthDay" "java.time.MonthDay"]))} (^java.lang.Boolean [^java.time.MonthDay this14864 ^java.time.MonthDay java-time-MonthDay14865] (.isAfter this14864 java-time-MonthDay14865))) 14 | (clojure.core/defn is-supported {:arglists (quote (["java.time.MonthDay" "java.time.temporal.TemporalField"]))} (^java.lang.Boolean [^java.time.MonthDay this14866 ^java.time.temporal.TemporalField java-time-temporal-TemporalField14867] (.isSupported this14866 java-time-temporal-TemporalField14867))) 15 | (clojure.core/defn parse {:arglists (quote (["java.lang.CharSequence" "java.time.format.DateTimeFormatter"] ["java.lang.CharSequence"]))} (^java.time.MonthDay [^java.lang.CharSequence java-lang-CharSequence14868 ^java.time.format.DateTimeFormatter java-time-format-DateTimeFormatter14869] (java.time.MonthDay/parse java-lang-CharSequence14868 java-time-format-DateTimeFormatter14869)) (^java.time.MonthDay [^java.lang.CharSequence java-lang-CharSequence14870] (java.time.MonthDay/parse java-lang-CharSequence14870))) 16 | (clojure.core/defn is-valid-year {:arglists (quote (["java.time.MonthDay" "int"]))} (^java.lang.Boolean [^java.time.MonthDay this14871 ^java.lang.Integer int14872] (.isValidYear this14871 int14872))) 17 | (clojure.core/defn hash-code {:arglists (quote (["java.time.MonthDay"]))} (^java.lang.Integer [^java.time.MonthDay this14873] (.hashCode this14873))) 18 | (clojure.core/defn adjust-into {:arglists (quote (["java.time.MonthDay" "java.time.temporal.Temporal"]))} (^java.time.temporal.Temporal [^java.time.MonthDay this14874 ^java.time.temporal.Temporal java-time-temporal-Temporal14875] (.adjustInto this14874 java-time-temporal-Temporal14875))) 19 | (clojure.core/defn with {:arglists (quote (["java.time.MonthDay" "java.time.Month"]))} (^java.time.MonthDay [^java.time.MonthDay this14876 ^java.time.Month java-time-Month14877] (.with this14876 java-time-Month14877))) 20 | (clojure.core/defn now {:arglists (quote (["java.time.ZoneId"] ["java.time.Clock"] []))} (^java.time.MonthDay [G__14879] (clojure.core/cond (clojure.core/and (clojure.core/instance? java.time.ZoneId G__14879)) (clojure.core/let [G__14879 ^"java.time.ZoneId" G__14879] (java.time.MonthDay/now G__14879)) (clojure.core/and (clojure.core/instance? java.time.Clock G__14879)) (clojure.core/let [G__14879 ^"java.time.Clock" G__14879] (java.time.MonthDay/now G__14879)) :else (throw (java.lang.IllegalArgumentException. "no corresponding java.time method with these args")))) (^java.time.MonthDay [] (java.time.MonthDay/now))) 21 | (clojure.core/defn get-month-value {:arglists (quote (["java.time.MonthDay"]))} (^java.lang.Integer [^java.time.MonthDay this14880] (.getMonthValue this14880))) 22 | (clojure.core/defn compare-to {:arglists (quote (["java.time.MonthDay" "java.time.MonthDay"]))} (^java.lang.Integer [^java.time.MonthDay this14881 ^java.time.MonthDay java-time-MonthDay14882] (.compareTo this14881 java-time-MonthDay14882))) 23 | (clojure.core/defn get-month {:arglists (quote (["java.time.MonthDay"]))} (^java.time.Month [^java.time.MonthDay this14883] (.getMonth this14883))) 24 | (clojure.core/defn get {:arglists (quote (["java.time.MonthDay" "java.time.temporal.TemporalField"]))} (^java.lang.Integer [^java.time.MonthDay this14884 ^java.time.temporal.TemporalField java-time-temporal-TemporalField14885] (.get this14884 java-time-temporal-TemporalField14885))) 25 | (clojure.core/defn equals {:arglists (quote (["java.time.MonthDay" "java.lang.Object"]))} (^java.lang.Boolean [^java.time.MonthDay this14886 ^java.lang.Object java-lang-Object14887] (.equals this14886 java-lang-Object14887))) 26 | (clojure.core/defn format {:arglists (quote (["java.time.MonthDay" "java.time.format.DateTimeFormatter"]))} (^java.lang.String [^java.time.MonthDay this14888 ^java.time.format.DateTimeFormatter java-time-format-DateTimeFormatter14889] (.format this14888 java-time-format-DateTimeFormatter14889))) 27 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/chrono_field.clj: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.chrono-field (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time.temporal ChronoField])) 2 | (def milli-of-second java.time.temporal.ChronoField/MILLI_OF_SECOND) 3 | (def year-of-era java.time.temporal.ChronoField/YEAR_OF_ERA) 4 | (def clock-hour-of-day java.time.temporal.ChronoField/CLOCK_HOUR_OF_DAY) 5 | (def era java.time.temporal.ChronoField/ERA) 6 | (def instant-seconds java.time.temporal.ChronoField/INSTANT_SECONDS) 7 | (def ampm-of-day java.time.temporal.ChronoField/AMPM_OF_DAY) 8 | (def offset-seconds java.time.temporal.ChronoField/OFFSET_SECONDS) 9 | (def nano-of-second java.time.temporal.ChronoField/NANO_OF_SECOND) 10 | (def nano-of-day java.time.temporal.ChronoField/NANO_OF_DAY) 11 | (def aligned-day-of-week-in-month java.time.temporal.ChronoField/ALIGNED_DAY_OF_WEEK_IN_MONTH) 12 | (def month-of-year java.time.temporal.ChronoField/MONTH_OF_YEAR) 13 | (def hour-of-ampm java.time.temporal.ChronoField/HOUR_OF_AMPM) 14 | (def year java.time.temporal.ChronoField/YEAR) 15 | (def micro-of-second java.time.temporal.ChronoField/MICRO_OF_SECOND) 16 | (def aligned-week-of-year java.time.temporal.ChronoField/ALIGNED_WEEK_OF_YEAR) 17 | (def proleptic-month java.time.temporal.ChronoField/PROLEPTIC_MONTH) 18 | (def day-of-month java.time.temporal.ChronoField/DAY_OF_MONTH) 19 | (def second-of-minute java.time.temporal.ChronoField/SECOND_OF_MINUTE) 20 | (def second-of-day java.time.temporal.ChronoField/SECOND_OF_DAY) 21 | (def epoch-day java.time.temporal.ChronoField/EPOCH_DAY) 22 | (def day-of-year java.time.temporal.ChronoField/DAY_OF_YEAR) 23 | (def aligned-week-of-month java.time.temporal.ChronoField/ALIGNED_WEEK_OF_MONTH) 24 | (def day-of-week java.time.temporal.ChronoField/DAY_OF_WEEK) 25 | (def clock-hour-of-ampm java.time.temporal.ChronoField/CLOCK_HOUR_OF_AMPM) 26 | (def minute-of-day java.time.temporal.ChronoField/MINUTE_OF_DAY) 27 | (def aligned-day-of-week-in-year java.time.temporal.ChronoField/ALIGNED_DAY_OF_WEEK_IN_YEAR) 28 | (def minute-of-hour java.time.temporal.ChronoField/MINUTE_OF_HOUR) 29 | (def hour-of-day java.time.temporal.ChronoField/HOUR_OF_DAY) 30 | (def milli-of-day java.time.temporal.ChronoField/MILLI_OF_DAY) 31 | (def micro-of-day java.time.temporal.ChronoField/MICRO_OF_DAY) 32 | (clojure.core/defn get-range-unit {:arglists (quote (["java.time.temporal.ChronoField"]))} (^java.time.temporal.ChronoUnit [^java.time.temporal.ChronoField this15620] (.getRangeUnit this15620))) 33 | (clojure.core/defn range {:arglists (quote (["java.time.temporal.ChronoField"]))} (^java.time.temporal.ValueRange [^java.time.temporal.ChronoField this15621] (.range this15621))) 34 | (clojure.core/defn values {:arglists (quote ([]))} (^"java.lang.Class" [] (java.time.temporal.ChronoField/values))) 35 | (clojure.core/defn value-of {:arglists (quote (["java.lang.String"] ["java.lang.Class" "java.lang.String"]))} (^java.time.temporal.ChronoField [^java.lang.String java-lang-String15622] (java.time.temporal.ChronoField/valueOf java-lang-String15622)) (^java.lang.Enum [^java.lang.Class java-lang-Class15623 ^java.lang.String java-lang-String15624] (java.time.temporal.ChronoField/valueOf java-lang-Class15623 java-lang-String15624))) 36 | (clojure.core/defn resolve {:arglists (quote (["java.time.temporal.ChronoField" "java.util.Map" "java.time.temporal.TemporalAccessor" "java.time.format.ResolverStyle"]))} (^java.time.temporal.TemporalAccessor [^java.time.temporal.ChronoField this15625 ^java.util.Map java-util-Map15626 ^java.time.temporal.TemporalAccessor java-time-temporal-TemporalAccessor15627 ^java.time.format.ResolverStyle java-time-format-ResolverStyle15628] (.resolve this15625 java-util-Map15626 java-time-temporal-TemporalAccessor15627 java-time-format-ResolverStyle15628))) 37 | (clojure.core/defn ordinal {:arglists (quote (["java.time.temporal.ChronoField"]))} (^java.lang.Integer [^java.time.temporal.ChronoField this15629] (.ordinal this15629))) 38 | (clojure.core/defn check-valid-int-value {:arglists (quote (["java.time.temporal.ChronoField" "long"]))} (^java.lang.Integer [^java.time.temporal.ChronoField this15630 ^long long15631] (.checkValidIntValue this15630 long15631))) 39 | (clojure.core/defn get-base-unit {:arglists (quote (["java.time.temporal.ChronoField"]))} (^java.time.temporal.ChronoUnit [^java.time.temporal.ChronoField this15632] (.getBaseUnit this15632))) 40 | (clojure.core/defn to-string {:arglists (quote (["java.time.temporal.ChronoField"]))} (^java.lang.String [^java.time.temporal.ChronoField this15633] (.toString this15633))) 41 | (clojure.core/defn is-date-based {:arglists (quote (["java.time.temporal.ChronoField"]))} (^java.lang.Boolean [^java.time.temporal.ChronoField this15634] (.isDateBased this15634))) 42 | (clojure.core/defn get-display-name {:arglists (quote (["java.time.temporal.ChronoField" "java.util.Locale"]))} (^java.lang.String [^java.time.temporal.ChronoField this15635 ^java.util.Locale java-util-Locale15636] (.getDisplayName this15635 java-util-Locale15636))) 43 | (clojure.core/defn name {:arglists (quote (["java.time.temporal.ChronoField"]))} (^java.lang.String [^java.time.temporal.ChronoField this15637] (.name this15637))) 44 | (clojure.core/defn is-supported-by {:arglists (quote (["java.time.temporal.ChronoField" "java.time.temporal.TemporalAccessor"]))} (^java.lang.Boolean [^java.time.temporal.ChronoField this15638 ^java.time.temporal.TemporalAccessor java-time-temporal-TemporalAccessor15639] (.isSupportedBy this15638 java-time-temporal-TemporalAccessor15639))) 45 | (clojure.core/defn range-refined-by {:arglists (quote (["java.time.temporal.ChronoField" "java.time.temporal.TemporalAccessor"]))} (^java.time.temporal.ValueRange [^java.time.temporal.ChronoField this15640 ^java.time.temporal.TemporalAccessor java-time-temporal-TemporalAccessor15641] (.rangeRefinedBy this15640 java-time-temporal-TemporalAccessor15641))) 46 | (clojure.core/defn get-declaring-class {:arglists (quote (["java.time.temporal.ChronoField"]))} (^java.lang.Class [^java.time.temporal.ChronoField this15642] (.getDeclaringClass this15642))) 47 | (clojure.core/defn hash-code {:arglists (quote (["java.time.temporal.ChronoField"]))} (^java.lang.Integer [^java.time.temporal.ChronoField this15643] (.hashCode this15643))) 48 | (clojure.core/defn adjust-into {:arglists (quote (["java.time.temporal.ChronoField" "java.time.temporal.Temporal" "long"]))} (^java.time.temporal.Temporal [^java.time.temporal.ChronoField this15644 ^java.time.temporal.Temporal java-time-temporal-Temporal15645 ^long long15646] (.adjustInto this15644 java-time-temporal-Temporal15645 long15646))) 49 | (clojure.core/defn get-from {:arglists (quote (["java.time.temporal.ChronoField" "java.time.temporal.TemporalAccessor"]))} (^long [^java.time.temporal.ChronoField this15647 ^java.time.temporal.TemporalAccessor java-time-temporal-TemporalAccessor15648] (.getFrom this15647 java-time-temporal-TemporalAccessor15648))) 50 | (clojure.core/defn compare-to {:arglists (quote (["java.time.temporal.ChronoField" "java.lang.Enum"]))} (^java.lang.Integer [^java.time.temporal.ChronoField this15649 ^java.lang.Enum java-lang-Enum15650] (.compareTo this15649 java-lang-Enum15650))) 51 | (clojure.core/defn equals {:arglists (quote (["java.time.temporal.ChronoField" "java.lang.Object"]))} (^java.lang.Boolean [^java.time.temporal.ChronoField this15651 ^java.lang.Object java-lang-Object15652] (.equals this15651 java-lang-Object15652))) 52 | (clojure.core/defn is-time-based {:arglists (quote (["java.time.temporal.ChronoField"]))} (^java.lang.Boolean [^java.time.temporal.ChronoField this15653] (.isTimeBased this15653))) 53 | (clojure.core/defn check-valid-value {:arglists (quote (["java.time.temporal.ChronoField" "long"]))} (^long [^java.time.temporal.ChronoField this15654 ^long long15655] (.checkValidValue this15654 long15655))) 54 | -------------------------------------------------------------------------------- /src/cljc/java_time/year.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.year (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time :refer [Year]])) 2 | (def min-value (goog.object/get java.time.Year "MIN_VALUE")) 3 | (def max-value (goog.object/get java.time.Year "MAX_VALUE")) 4 | (clojure.core/defn range {:arglists (quote (["java.time.Year" "java.time.temporal.TemporalField"]))} (^js/JSJoda.ValueRange [^js/JSJoda.Year this15159 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15160] (.range this15159 java-time-temporal-TemporalField15160))) 5 | (clojure.core/defn of {:arglists (quote (["int"]))} (^js/JSJoda.Year [^int int15161] (js-invoke java.time.Year "of" int15161))) 6 | (clojure.core/defn at-day {:arglists (quote (["java.time.Year" "int"]))} (^js/JSJoda.LocalDate [^js/JSJoda.Year this15162 ^int int15163] (.atDay this15162 int15163))) 7 | (clojure.core/defn plus {:arglists (quote (["java.time.Year" "java.time.temporal.TemporalAmount"] ["java.time.Year" "long" "java.time.temporal.TemporalUnit"]))} (^js/JSJoda.Year [^js/JSJoda.Year this15164 ^js/JSJoda.TemporalAmount java-time-temporal-TemporalAmount15165] (.plus this15164 java-time-temporal-TemporalAmount15165)) (^js/JSJoda.Year [^js/JSJoda.Year this15166 ^long long15167 ^js/JSJoda.TemporalUnit java-time-temporal-TemporalUnit15168] (.plus this15166 long15167 java-time-temporal-TemporalUnit15168))) 8 | (clojure.core/defn is-valid-month-day {:arglists (quote (["java.time.Year" "java.time.MonthDay"]))} (^boolean [^js/JSJoda.Year this15169 ^js/JSJoda.MonthDay java-time-MonthDay15170] (.isValidMonthDay this15169 java-time-MonthDay15170))) 9 | (clojure.core/defn query {:arglists (quote (["java.time.Year" "java.time.temporal.TemporalQuery"]))} (^java.lang.Object [^js/JSJoda.Year this15171 ^js/JSJoda.TemporalQuery java-time-temporal-TemporalQuery15172] (.query this15171 java-time-temporal-TemporalQuery15172))) 10 | ^{:line 84, :column 16} (clojure.core/defn is-leap {:arglists ^{:line 84, :column 54} (quote ^{:line 84, :column 61} (["long"]))} ^{:line 85, :column 18} (^java.lang.Boolean [^long long57050] ^{:line 85, :column 56} (. java.time.Year isLeap long57050))) 11 | (clojure.core/defn to-string {:arglists (quote (["java.time.Year"]))} (^java.lang.String [^js/JSJoda.Year this15173] (.toString this15173))) 12 | (clojure.core/defn is-before {:arglists (quote (["java.time.Year" "java.time.Year"]))} (^boolean [^js/JSJoda.Year this15174 ^js/JSJoda.Year java-time-Year15175] (.isBefore this15174 java-time-Year15175))) 13 | (clojure.core/defn minus {:arglists (quote (["java.time.Year" "java.time.temporal.TemporalAmount"] ["java.time.Year" "long" "java.time.temporal.TemporalUnit"]))} (^js/JSJoda.Year [^js/JSJoda.Year this15176 ^js/JSJoda.TemporalAmount java-time-temporal-TemporalAmount15177] (.minus this15176 java-time-temporal-TemporalAmount15177)) (^js/JSJoda.Year [^js/JSJoda.Year this15178 ^long long15179 ^js/JSJoda.TemporalUnit java-time-temporal-TemporalUnit15180] (.minus this15178 long15179 java-time-temporal-TemporalUnit15180))) 14 | (clojure.core/defn at-month-day {:arglists (quote (["java.time.Year" "java.time.MonthDay"]))} (^js/JSJoda.LocalDate [^js/JSJoda.Year this15181 ^js/JSJoda.MonthDay java-time-MonthDay15182] (.atMonthDay this15181 java-time-MonthDay15182))) 15 | (clojure.core/defn get-value {:arglists (quote (["java.time.Year"]))} (^int [^js/JSJoda.Year this15183] (.value this15183))) 16 | (clojure.core/defn get-long {:arglists (quote (["java.time.Year" "java.time.temporal.TemporalField"]))} (^long [^js/JSJoda.Year this15184 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15185] (.getLong this15184 java-time-temporal-TemporalField15185))) 17 | (clojure.core/defn at-month {:arglists (quote (["java.time.Year" "int"] ["java.time.Year" "java.time.Month"]))} (^js/JSJoda.YearMonth [this15186 G__15187] (.atMonth ^js/JSJoda.Year this15186 G__15187))) 18 | (clojure.core/defn until {:arglists (quote (["java.time.Year" "java.time.temporal.Temporal" "java.time.temporal.TemporalUnit"]))} (^long [^js/JSJoda.Year this15188 ^js/JSJoda.Temporal java-time-temporal-Temporal15189 ^js/JSJoda.TemporalUnit java-time-temporal-TemporalUnit15190] (.until this15188 java-time-temporal-Temporal15189 java-time-temporal-TemporalUnit15190))) 19 | (clojure.core/defn length {:arglists (quote (["java.time.Year"]))} (^int [^js/JSJoda.Year this15191] (.length this15191))) 20 | (clojure.core/defn from {:arglists (quote (["java.time.temporal.TemporalAccessor"]))} (^js/JSJoda.Year [^js/JSJoda.TemporalAccessor java-time-temporal-TemporalAccessor15192] (js-invoke java.time.Year "from" java-time-temporal-TemporalAccessor15192))) 21 | (clojure.core/defn is-after {:arglists (quote (["java.time.Year" "java.time.Year"]))} (^boolean [^js/JSJoda.Year this15193 ^js/JSJoda.Year java-time-Year15194] (.isAfter this15193 java-time-Year15194))) 22 | (clojure.core/defn is-supported {:arglists (quote (["java.time.Year" "java.time.temporal.TemporalField"] ["java.time.Year" "java.time.temporal.TemporalUnit"]))} (^boolean [this15195 G__15196] (.isSupported ^js/JSJoda.Year this15195 G__15196))) 23 | (clojure.core/defn minus-years {:arglists (quote (["java.time.Year" "long"]))} (^js/JSJoda.Year [^js/JSJoda.Year this15197 ^long long15198] (.minusYears this15197 long15198))) 24 | (clojure.core/defn parse {:arglists (quote (["java.lang.CharSequence" "java.time.format.DateTimeFormatter"] ["java.lang.CharSequence"]))} (^js/JSJoda.Year [^java.lang.CharSequence java-lang-CharSequence15199 ^js/JSJoda.DateTimeFormatter java-time-format-DateTimeFormatter15200] (js-invoke java.time.Year "parse" java-lang-CharSequence15199 java-time-format-DateTimeFormatter15200)) (^js/JSJoda.Year [^java.lang.CharSequence java-lang-CharSequence15201] (js-invoke java.time.Year "parse" java-lang-CharSequence15201))) 25 | (clojure.core/defn hash-code {:arglists (quote (["java.time.Year"]))} (^int [^js/JSJoda.Year this15202] (.hashCode this15202))) 26 | (clojure.core/defn adjust-into {:arglists (quote (["java.time.Year" "java.time.temporal.Temporal"]))} (^js/JSJoda.Temporal [^js/JSJoda.Year this15203 ^js/JSJoda.Temporal java-time-temporal-Temporal15204] (.adjustInto this15203 java-time-temporal-Temporal15204))) 27 | (clojure.core/defn with {:arglists (quote (["java.time.Year" "java.time.temporal.TemporalField" "long"] ["java.time.Year" "java.time.temporal.TemporalAdjuster"]))} (^js/JSJoda.Year [^js/JSJoda.Year this15205 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15206 ^long long15207] (.with this15205 java-time-temporal-TemporalField15206 long15207)) (^js/JSJoda.Year [^js/JSJoda.Year this15208 ^js/JSJoda.TemporalAdjuster java-time-temporal-TemporalAdjuster15209] (.with this15208 java-time-temporal-TemporalAdjuster15209))) 28 | (clojure.core/defn now {:arglists (quote ([] ["java.time.Clock"] ["java.time.ZoneId"]))} (^js/JSJoda.Year [] (js-invoke java.time.Year "now")) (^js/JSJoda.Year [G__15211] (js-invoke java.time.Year "now" G__15211))) 29 | (clojure.core/defn compare-to {:arglists (quote (["java.time.Year" "java.time.Year"]))} (^int [^js/JSJoda.Year this15212 ^js/JSJoda.Year java-time-Year15213] (.compareTo this15212 java-time-Year15213))) 30 | (clojure.core/defn get {:arglists (quote (["java.time.Year" "java.time.temporal.TemporalField"]))} (^int [^js/JSJoda.Year this15214 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15215] (.get this15214 java-time-temporal-TemporalField15215))) 31 | (clojure.core/defn equals {:arglists (quote (["java.time.Year" "java.lang.Object"]))} (^boolean [^js/JSJoda.Year this15216 ^java.lang.Object java-lang-Object15217] (.equals this15216 java-lang-Object15217))) 32 | (clojure.core/defn format {:arglists (quote (["java.time.Year" "java.time.format.DateTimeFormatter"]))} (^java.lang.String [^js/JSJoda.Year this15218 ^js/JSJoda.DateTimeFormatter java-time-format-DateTimeFormatter15219] (.format this15218 java-time-format-DateTimeFormatter15219))) 33 | (clojure.core/defn plus-years {:arglists (quote (["java.time.Year" "long"]))} (^js/JSJoda.Year [^js/JSJoda.Year this15220 ^long long15221] (.plusYears this15220 long15221))) 34 | -------------------------------------------------------------------------------- /src/cljc/java_time/temporal/chrono_field.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.temporal.chrono-field (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.temporal :refer [ChronoField]])) 2 | (def milli-of-second (goog.object/get java.time.temporal.ChronoField "MILLI_OF_SECOND")) 3 | (def year-of-era (goog.object/get java.time.temporal.ChronoField "YEAR_OF_ERA")) 4 | (def clock-hour-of-day (goog.object/get java.time.temporal.ChronoField "CLOCK_HOUR_OF_DAY")) 5 | (def era (goog.object/get java.time.temporal.ChronoField "ERA")) 6 | (def instant-seconds (goog.object/get java.time.temporal.ChronoField "INSTANT_SECONDS")) 7 | (def ampm-of-day (goog.object/get java.time.temporal.ChronoField "AMPM_OF_DAY")) 8 | (def offset-seconds (goog.object/get java.time.temporal.ChronoField "OFFSET_SECONDS")) 9 | (def nano-of-second (goog.object/get java.time.temporal.ChronoField "NANO_OF_SECOND")) 10 | (def nano-of-day (goog.object/get java.time.temporal.ChronoField "NANO_OF_DAY")) 11 | (def aligned-day-of-week-in-month (goog.object/get java.time.temporal.ChronoField "ALIGNED_DAY_OF_WEEK_IN_MONTH")) 12 | (def month-of-year (goog.object/get java.time.temporal.ChronoField "MONTH_OF_YEAR")) 13 | (def hour-of-ampm (goog.object/get java.time.temporal.ChronoField "HOUR_OF_AMPM")) 14 | (def year (goog.object/get java.time.temporal.ChronoField "YEAR")) 15 | (def micro-of-second (goog.object/get java.time.temporal.ChronoField "MICRO_OF_SECOND")) 16 | (def aligned-week-of-year (goog.object/get java.time.temporal.ChronoField "ALIGNED_WEEK_OF_YEAR")) 17 | (def proleptic-month (goog.object/get java.time.temporal.ChronoField "PROLEPTIC_MONTH")) 18 | (def day-of-month (goog.object/get java.time.temporal.ChronoField "DAY_OF_MONTH")) 19 | (def second-of-minute (goog.object/get java.time.temporal.ChronoField "SECOND_OF_MINUTE")) 20 | (def second-of-day (goog.object/get java.time.temporal.ChronoField "SECOND_OF_DAY")) 21 | (def epoch-day (goog.object/get java.time.temporal.ChronoField "EPOCH_DAY")) 22 | (def day-of-year (goog.object/get java.time.temporal.ChronoField "DAY_OF_YEAR")) 23 | (def aligned-week-of-month (goog.object/get java.time.temporal.ChronoField "ALIGNED_WEEK_OF_MONTH")) 24 | (def day-of-week (goog.object/get java.time.temporal.ChronoField "DAY_OF_WEEK")) 25 | (def clock-hour-of-ampm (goog.object/get java.time.temporal.ChronoField "CLOCK_HOUR_OF_AMPM")) 26 | (def minute-of-day (goog.object/get java.time.temporal.ChronoField "MINUTE_OF_DAY")) 27 | (def aligned-day-of-week-in-year (goog.object/get java.time.temporal.ChronoField "ALIGNED_DAY_OF_WEEK_IN_YEAR")) 28 | (def minute-of-hour (goog.object/get java.time.temporal.ChronoField "MINUTE_OF_HOUR")) 29 | (def hour-of-day (goog.object/get java.time.temporal.ChronoField "HOUR_OF_DAY")) 30 | (def milli-of-day (goog.object/get java.time.temporal.ChronoField "MILLI_OF_DAY")) 31 | (def micro-of-day (goog.object/get java.time.temporal.ChronoField "MICRO_OF_DAY")) 32 | (clojure.core/defn get-range-unit {:arglists (quote (["java.time.temporal.ChronoField"]))} (^js/JSJoda.TemporalUnit [^js/JSJoda.ChronoField this15656] (.rangeUnit this15656))) 33 | (clojure.core/defn range {:arglists (quote (["java.time.temporal.ChronoField"]))} (^js/JSJoda.ValueRange [^js/JSJoda.ChronoField this15657] (.range this15657))) 34 | (clojure.core/defn values {:arglists (quote ([]))} (^"java.lang.Class" [] (js-invoke java.time.temporal.ChronoField "values"))) 35 | (clojure.core/defn value-of {:arglists (quote (["java.lang.String"] ["java.lang.Class" "java.lang.String"]))} (^js/JSJoda.ChronoField [^java.lang.String java-lang-String15658] (js-invoke java.time.temporal.ChronoField "valueOf" java-lang-String15658)) (^java.lang.Enum [^java.lang.Class java-lang-Class15659 ^java.lang.String java-lang-String15660] (js-invoke java.time.temporal.ChronoField "valueOf" java-lang-Class15659 java-lang-String15660))) 36 | (clojure.core/defn resolve {:arglists (quote (["java.time.temporal.ChronoField" "java.util.Map" "java.time.temporal.TemporalAccessor" "java.time.format.ResolverStyle"]))} (^js/JSJoda.TemporalAccessor [^js/JSJoda.ChronoField this15661 ^java.util.Map java-util-Map15662 ^js/JSJoda.TemporalAccessor java-time-temporal-TemporalAccessor15663 ^js/JSJoda.ResolverStyle java-time-format-ResolverStyle15664] (.resolve this15661 java-util-Map15662 java-time-temporal-TemporalAccessor15663 java-time-format-ResolverStyle15664))) 37 | (clojure.core/defn ordinal {:arglists (quote (["java.time.temporal.ChronoField"]))} (^int [^js/JSJoda.ChronoField this15665] (.ordinal this15665))) 38 | (clojure.core/defn check-valid-int-value {:arglists (quote (["java.time.temporal.ChronoField" "long"]))} (^int [^js/JSJoda.ChronoField this15666 ^long long15667] (.checkValidIntValue this15666 long15667))) 39 | (clojure.core/defn get-base-unit {:arglists (quote (["java.time.temporal.ChronoField"]))} (^js/JSJoda.TemporalUnit [^js/JSJoda.ChronoField this15668] (.baseUnit this15668))) 40 | (clojure.core/defn to-string {:arglists (quote (["java.time.temporal.ChronoField"]))} (^java.lang.String [^js/JSJoda.ChronoField this15669] (.toString this15669))) 41 | (clojure.core/defn is-date-based {:arglists (quote (["java.time.temporal.ChronoField"]))} (^boolean [^js/JSJoda.ChronoField this15670] (.isDateBased this15670))) 42 | (clojure.core/defn get-display-name {:arglists (quote (["java.time.temporal.ChronoField" "java.util.Locale"]))} (^java.lang.String [^js/JSJoda.ChronoField this15671 ^java.util.Locale java-util-Locale15672] (.displayName this15671 java-util-Locale15672))) 43 | (clojure.core/defn name {:arglists (quote (["java.time.temporal.ChronoField"]))} (^java.lang.String [^js/JSJoda.ChronoField this15673] (.name this15673))) 44 | (clojure.core/defn is-supported-by {:arglists (quote (["java.time.temporal.ChronoField" "java.time.temporal.TemporalAccessor"]))} (^boolean [^js/JSJoda.ChronoField this15674 ^js/JSJoda.TemporalAccessor java-time-temporal-TemporalAccessor15675] (.isSupportedBy this15674 java-time-temporal-TemporalAccessor15675))) 45 | (clojure.core/defn range-refined-by {:arglists (quote (["java.time.temporal.ChronoField" "java.time.temporal.TemporalAccessor"]))} (^js/JSJoda.ValueRange [^js/JSJoda.ChronoField this15676 ^js/JSJoda.TemporalAccessor java-time-temporal-TemporalAccessor15677] (.rangeRefinedBy this15676 java-time-temporal-TemporalAccessor15677))) 46 | (clojure.core/defn get-declaring-class {:arglists (quote (["java.time.temporal.ChronoField"]))} (^java.lang.Class [^js/JSJoda.ChronoField this15678] (.declaringClass this15678))) 47 | (clojure.core/defn hash-code {:arglists (quote (["java.time.temporal.ChronoField"]))} (^int [^js/JSJoda.ChronoField this15679] (.hashCode this15679))) 48 | (clojure.core/defn adjust-into {:arglists (quote (["java.time.temporal.ChronoField" "java.time.temporal.Temporal" "long"]))} (^js/JSJoda.Temporal [^js/JSJoda.ChronoField this15680 ^js/JSJoda.Temporal java-time-temporal-Temporal15681 ^long long15682] (.adjustInto this15680 java-time-temporal-Temporal15681 long15682))) 49 | (clojure.core/defn get-from {:arglists (quote (["java.time.temporal.ChronoField" "java.time.temporal.TemporalAccessor"]))} (^long [^js/JSJoda.ChronoField this15683 ^js/JSJoda.TemporalAccessor java-time-temporal-TemporalAccessor15684] (.from this15683 java-time-temporal-TemporalAccessor15684))) 50 | (clojure.core/defn compare-to {:arglists (quote (["java.time.temporal.ChronoField" "java.lang.Enum"]))} (^int [^js/JSJoda.ChronoField this15685 ^java.lang.Enum java-lang-Enum15686] (.compareTo this15685 java-lang-Enum15686))) 51 | (clojure.core/defn equals {:arglists (quote (["java.time.temporal.ChronoField" "java.lang.Object"]))} (^boolean [^js/JSJoda.ChronoField this15687 ^java.lang.Object java-lang-Object15688] (.equals this15687 java-lang-Object15688))) 52 | (clojure.core/defn is-time-based {:arglists (quote (["java.time.temporal.ChronoField"]))} (^boolean [^js/JSJoda.ChronoField this15689] (.isTimeBased this15689))) 53 | (clojure.core/defn check-valid-value {:arglists (quote (["java.time.temporal.ChronoField" "long"]))} (^long [^js/JSJoda.ChronoField this15690 ^long long15691] (.checkValidValue this15690 long15691))) 54 | -------------------------------------------------------------------------------- /src/cljc/java_time/year_month.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.year-month (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time :refer [YearMonth]])) 2 | (clojure.core/defn length-of-year {:arglists (quote (["java.time.YearMonth"]))} (^int [^js/JSJoda.YearMonth this15296] (.lengthOfYear this15296))) 3 | (clojure.core/defn range {:arglists (quote (["java.time.YearMonth" "java.time.temporal.TemporalField"]))} (^js/JSJoda.ValueRange [^js/JSJoda.YearMonth this15297 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15298] (.range this15297 java-time-temporal-TemporalField15298))) 4 | (clojure.core/defn is-valid-day {:arglists (quote (["java.time.YearMonth" "int"]))} (^boolean [^js/JSJoda.YearMonth this15299 ^int int15300] (.isValidDay this15299 int15300))) 5 | (clojure.core/defn of {:arglists (quote (["int" "int"] ["int" "java.time.Month"]))} (^js/JSJoda.YearMonth [G__15302 G__15303] (js-invoke java.time.YearMonth "of" G__15302 G__15303))) 6 | (clojure.core/defn with-month {:arglists (quote (["java.time.YearMonth" "int"]))} (^js/JSJoda.YearMonth [^js/JSJoda.YearMonth this15304 ^int int15305] (.withMonth this15304 int15305))) 7 | (clojure.core/defn at-day {:arglists (quote (["java.time.YearMonth" "int"]))} (^js/JSJoda.LocalDate [^js/JSJoda.YearMonth this15306 ^int int15307] (.atDay this15306 int15307))) 8 | (clojure.core/defn get-year {:arglists (quote (["java.time.YearMonth"]))} (^int [^js/JSJoda.YearMonth this15308] (.year this15308))) 9 | (clojure.core/defn plus {:arglists (quote (["java.time.YearMonth" "long" "java.time.temporal.TemporalUnit"] ["java.time.YearMonth" "java.time.temporal.TemporalAmount"]))} (^js/JSJoda.YearMonth [^js/JSJoda.YearMonth this15309 ^long long15310 ^js/JSJoda.TemporalUnit java-time-temporal-TemporalUnit15311] (.plus this15309 long15310 java-time-temporal-TemporalUnit15311)) (^js/JSJoda.YearMonth [^js/JSJoda.YearMonth this15312 ^js/JSJoda.TemporalAmount java-time-temporal-TemporalAmount15313] (.plus this15312 java-time-temporal-TemporalAmount15313))) 10 | (clojure.core/defn is-leap-year {:arglists (quote (["java.time.YearMonth"]))} (^boolean [^js/JSJoda.YearMonth this15314] (.isLeapYear this15314))) 11 | (clojure.core/defn query {:arglists (quote (["java.time.YearMonth" "java.time.temporal.TemporalQuery"]))} (^java.lang.Object [^js/JSJoda.YearMonth this15315 ^js/JSJoda.TemporalQuery java-time-temporal-TemporalQuery15316] (.query this15315 java-time-temporal-TemporalQuery15316))) 12 | (clojure.core/defn to-string {:arglists (quote (["java.time.YearMonth"]))} (^java.lang.String [^js/JSJoda.YearMonth this15317] (.toString this15317))) 13 | (clojure.core/defn plus-months {:arglists (quote (["java.time.YearMonth" "long"]))} (^js/JSJoda.YearMonth [^js/JSJoda.YearMonth this15318 ^long long15319] (.plusMonths this15318 long15319))) 14 | (clojure.core/defn is-before {:arglists (quote (["java.time.YearMonth" "java.time.YearMonth"]))} (^boolean [^js/JSJoda.YearMonth this15320 ^js/JSJoda.YearMonth java-time-YearMonth15321] (.isBefore this15320 java-time-YearMonth15321))) 15 | (clojure.core/defn minus-months {:arglists (quote (["java.time.YearMonth" "long"]))} (^js/JSJoda.YearMonth [^js/JSJoda.YearMonth this15322 ^long long15323] (.minusMonths this15322 long15323))) 16 | (clojure.core/defn minus {:arglists (quote (["java.time.YearMonth" "java.time.temporal.TemporalAmount"] ["java.time.YearMonth" "long" "java.time.temporal.TemporalUnit"]))} (^js/JSJoda.YearMonth [^js/JSJoda.YearMonth this15324 ^js/JSJoda.TemporalAmount java-time-temporal-TemporalAmount15325] (.minus this15324 java-time-temporal-TemporalAmount15325)) (^js/JSJoda.YearMonth [^js/JSJoda.YearMonth this15326 ^long long15327 ^js/JSJoda.TemporalUnit java-time-temporal-TemporalUnit15328] (.minus this15326 long15327 java-time-temporal-TemporalUnit15328))) 17 | (clojure.core/defn get-long {:arglists (quote (["java.time.YearMonth" "java.time.temporal.TemporalField"]))} (^long [^js/JSJoda.YearMonth this15329 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15330] (.getLong this15329 java-time-temporal-TemporalField15330))) 18 | (clojure.core/defn with-year {:arglists (quote (["java.time.YearMonth" "int"]))} (^js/JSJoda.YearMonth [^js/JSJoda.YearMonth this15331 ^int int15332] (.withYear this15331 int15332))) 19 | (clojure.core/defn at-end-of-month {:arglists (quote (["java.time.YearMonth"]))} (^js/JSJoda.LocalDate [^js/JSJoda.YearMonth this15333] (.atEndOfMonth this15333))) 20 | (clojure.core/defn length-of-month {:arglists (quote (["java.time.YearMonth"]))} (^int [^js/JSJoda.YearMonth this15334] (.lengthOfMonth this15334))) 21 | (clojure.core/defn until {:arglists (quote (["java.time.YearMonth" "java.time.temporal.Temporal" "java.time.temporal.TemporalUnit"]))} (^long [^js/JSJoda.YearMonth this15335 ^js/JSJoda.Temporal java-time-temporal-Temporal15336 ^js/JSJoda.TemporalUnit java-time-temporal-TemporalUnit15337] (.until this15335 java-time-temporal-Temporal15336 java-time-temporal-TemporalUnit15337))) 22 | (clojure.core/defn from {:arglists (quote (["java.time.temporal.TemporalAccessor"]))} (^js/JSJoda.YearMonth [^js/JSJoda.TemporalAccessor java-time-temporal-TemporalAccessor15338] (js-invoke java.time.YearMonth "from" java-time-temporal-TemporalAccessor15338))) 23 | (clojure.core/defn is-after {:arglists (quote (["java.time.YearMonth" "java.time.YearMonth"]))} (^boolean [^js/JSJoda.YearMonth this15339 ^js/JSJoda.YearMonth java-time-YearMonth15340] (.isAfter this15339 java-time-YearMonth15340))) 24 | (clojure.core/defn is-supported {:arglists (quote (["java.time.YearMonth" "java.time.temporal.TemporalField"] ["java.time.YearMonth" "java.time.temporal.TemporalUnit"]))} (^boolean [this15341 G__15342] (.isSupported ^js/JSJoda.YearMonth this15341 G__15342))) 25 | (clojure.core/defn minus-years {:arglists (quote (["java.time.YearMonth" "long"]))} (^js/JSJoda.YearMonth [^js/JSJoda.YearMonth this15343 ^long long15344] (.minusYears this15343 long15344))) 26 | (clojure.core/defn parse {:arglists (quote (["java.lang.CharSequence" "java.time.format.DateTimeFormatter"] ["java.lang.CharSequence"]))} (^js/JSJoda.YearMonth [^java.lang.CharSequence java-lang-CharSequence15345 ^js/JSJoda.DateTimeFormatter java-time-format-DateTimeFormatter15346] (js-invoke java.time.YearMonth "parse" java-lang-CharSequence15345 java-time-format-DateTimeFormatter15346)) (^js/JSJoda.YearMonth [^java.lang.CharSequence java-lang-CharSequence15347] (js-invoke java.time.YearMonth "parse" java-lang-CharSequence15347))) 27 | (clojure.core/defn hash-code {:arglists (quote (["java.time.YearMonth"]))} (^int [^js/JSJoda.YearMonth this15348] (.hashCode this15348))) 28 | (clojure.core/defn adjust-into {:arglists (quote (["java.time.YearMonth" "java.time.temporal.Temporal"]))} (^js/JSJoda.Temporal [^js/JSJoda.YearMonth this15349 ^js/JSJoda.Temporal java-time-temporal-Temporal15350] (.adjustInto this15349 java-time-temporal-Temporal15350))) 29 | (clojure.core/defn with {:arglists (quote (["java.time.YearMonth" "java.time.temporal.TemporalField" "long"] ["java.time.YearMonth" "java.time.temporal.TemporalAdjuster"]))} (^js/JSJoda.YearMonth [^js/JSJoda.YearMonth this15351 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15352 ^long long15353] (.with this15351 java-time-temporal-TemporalField15352 long15353)) (^js/JSJoda.YearMonth [^js/JSJoda.YearMonth this15354 ^js/JSJoda.TemporalAdjuster java-time-temporal-TemporalAdjuster15355] (.with this15354 java-time-temporal-TemporalAdjuster15355))) 30 | (clojure.core/defn now {:arglists (quote ([] ["java.time.Clock"] ["java.time.ZoneId"]))} (^js/JSJoda.YearMonth [] (js-invoke java.time.YearMonth "now")) (^js/JSJoda.YearMonth [G__15357] (js-invoke java.time.YearMonth "now" G__15357))) 31 | (clojure.core/defn get-month-value {:arglists (quote (["java.time.YearMonth"]))} (^int [^js/JSJoda.YearMonth this15358] (.monthValue this15358))) 32 | (clojure.core/defn compare-to {:arglists (quote (["java.time.YearMonth" "java.time.YearMonth"]))} (^int [^js/JSJoda.YearMonth this15359 ^js/JSJoda.YearMonth java-time-YearMonth15360] (.compareTo this15359 java-time-YearMonth15360))) 33 | (clojure.core/defn get-month {:arglists (quote (["java.time.YearMonth"]))} (^js/JSJoda.Month [^js/JSJoda.YearMonth this15361] (.month this15361))) 34 | (clojure.core/defn get {:arglists (quote (["java.time.YearMonth" "java.time.temporal.TemporalField"]))} (^int [^js/JSJoda.YearMonth this15362 ^js/JSJoda.TemporalField java-time-temporal-TemporalField15363] (.get this15362 java-time-temporal-TemporalField15363))) 35 | (clojure.core/defn equals {:arglists (quote (["java.time.YearMonth" "java.lang.Object"]))} (^boolean [^js/JSJoda.YearMonth this15364 ^java.lang.Object java-lang-Object15365] (.equals this15364 java-lang-Object15365))) 36 | (clojure.core/defn format {:arglists (quote (["java.time.YearMonth" "java.time.format.DateTimeFormatter"]))} (^java.lang.String [^js/JSJoda.YearMonth this15366 ^js/JSJoda.DateTimeFormatter java-time-format-DateTimeFormatter15367] (.format this15366 java-time-format-DateTimeFormatter15367))) 37 | (clojure.core/defn plus-years {:arglists (quote (["java.time.YearMonth" "long"]))} (^js/JSJoda.YearMonth [^js/JSJoda.YearMonth this15368 ^long long15369] (.plusYears this15368 long15369))) 38 | -------------------------------------------------------------------------------- /src/cljc/java_time/instant.cljs: -------------------------------------------------------------------------------- 1 | (ns cljc.java-time.instant (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time :refer [Instant]])) 2 | (def min (goog.object/get java.time.Instant "MIN")) 3 | (def epoch (goog.object/get java.time.Instant "EPOCH")) 4 | (def max (goog.object/get java.time.Instant "MAX")) 5 | (clojure.core/defn truncated-to {:arglists (quote (["java.time.Instant" "java.time.temporal.TemporalUnit"]))} (^js/JSJoda.Instant [^js/JSJoda.Instant this14122 ^js/JSJoda.TemporalUnit java-time-temporal-TemporalUnit14123] (.truncatedTo this14122 java-time-temporal-TemporalUnit14123))) 6 | (clojure.core/defn range {:arglists (quote (["java.time.Instant" "java.time.temporal.TemporalField"]))} (^js/JSJoda.ValueRange [^js/JSJoda.Instant this14124 ^js/JSJoda.TemporalField java-time-temporal-TemporalField14125] (cljc.java-time.extn.calendar-awareness/calendar-aware-cljs (.range this14124 java-time-temporal-TemporalField14125)))) 7 | (clojure.core/defn of-epoch-second {:arglists (quote (["long" "long"] ["long"]))} (^js/JSJoda.Instant [^long long14126 ^long long14127] (js-invoke java.time.Instant "ofEpochSecond" long14126 long14127)) (^js/JSJoda.Instant [^long long14128] (js-invoke java.time.Instant "ofEpochSecond" long14128))) 8 | (clojure.core/defn at-offset {:arglists (quote (["java.time.Instant" "java.time.ZoneOffset"]))} (^js/JSJoda.OffsetDateTime [^js/JSJoda.Instant this14129 ^js/JSJoda.ZoneOffset java-time-ZoneOffset14130] (.atOffset this14129 java-time-ZoneOffset14130))) 9 | (clojure.core/defn minus-millis {:arglists (quote (["java.time.Instant" "long"]))} (^js/JSJoda.Instant [^js/JSJoda.Instant this14131 ^long long14132] (.minusMillis this14131 long14132))) 10 | (clojure.core/defn get-nano {:arglists (quote (["java.time.Instant"]))} (^int [^js/JSJoda.Instant this14133] (.nano this14133))) 11 | (clojure.core/defn plus-millis {:arglists (quote (["java.time.Instant" "long"]))} (^js/JSJoda.Instant [^js/JSJoda.Instant this14134 ^long long14135] (.plusMillis this14134 long14135))) 12 | (clojure.core/defn minus-seconds {:arglists (quote (["java.time.Instant" "long"]))} (^js/JSJoda.Instant [^js/JSJoda.Instant this14136 ^long long14137] (.minusSeconds this14136 long14137))) 13 | (clojure.core/defn plus-nanos {:arglists (quote (["java.time.Instant" "long"]))} (^js/JSJoda.Instant [^js/JSJoda.Instant this14138 ^long long14139] (.plusNanos this14138 long14139))) 14 | (clojure.core/defn plus {:arglists (quote (["java.time.Instant" "java.time.temporal.TemporalAmount"] ["java.time.Instant" "long" "java.time.temporal.TemporalUnit"]))} (^js/JSJoda.Instant [^js/JSJoda.Instant this14140 ^js/JSJoda.TemporalAmount java-time-temporal-TemporalAmount14141] (cljc.java-time.extn.calendar-awareness/calendar-aware-cljs (.plus this14140 java-time-temporal-TemporalAmount14141))) (^js/JSJoda.Instant [^js/JSJoda.Instant this14142 ^long long14143 ^js/JSJoda.TemporalUnit java-time-temporal-TemporalUnit14144] (cljc.java-time.extn.calendar-awareness/calendar-aware-cljs (.plus this14142 long14143 java-time-temporal-TemporalUnit14144)))) 15 | (clojure.core/defn query {:arglists (quote (["java.time.Instant" "java.time.temporal.TemporalQuery"]))} (^java.lang.Object [^js/JSJoda.Instant this14145 ^js/JSJoda.TemporalQuery java-time-temporal-TemporalQuery14146] (.query this14145 java-time-temporal-TemporalQuery14146))) 16 | (clojure.core/defn to-string {:arglists (quote (["java.time.Instant"]))} (^java.lang.String [^js/JSJoda.Instant this14147] (.toString this14147))) 17 | (clojure.core/defn is-before {:arglists (quote (["java.time.Instant" "java.time.Instant"]))} (^boolean [^js/JSJoda.Instant this14148 ^js/JSJoda.Instant java-time-Instant14149] (.isBefore this14148 java-time-Instant14149))) 18 | (clojure.core/defn minus {:arglists (quote (["java.time.Instant" "java.time.temporal.TemporalAmount"] ["java.time.Instant" "long" "java.time.temporal.TemporalUnit"]))} (^js/JSJoda.Instant [^js/JSJoda.Instant this14150 ^js/JSJoda.TemporalAmount java-time-temporal-TemporalAmount14151] (cljc.java-time.extn.calendar-awareness/calendar-aware-cljs (.minus this14150 java-time-temporal-TemporalAmount14151))) (^js/JSJoda.Instant [^js/JSJoda.Instant this14152 ^long long14153 ^js/JSJoda.TemporalUnit java-time-temporal-TemporalUnit14154] (cljc.java-time.extn.calendar-awareness/calendar-aware-cljs (.minus this14152 long14153 java-time-temporal-TemporalUnit14154)))) 19 | (clojure.core/defn at-zone {:arglists (quote (["java.time.Instant" "java.time.ZoneId"]))} (^js/JSJoda.ZonedDateTime [^js/JSJoda.Instant this14155 ^js/JSJoda.ZoneId java-time-ZoneId14156] (.atZone this14155 java-time-ZoneId14156))) 20 | (clojure.core/defn of-epoch-milli {:arglists (quote (["long"]))} (^js/JSJoda.Instant [^long long14157] (js-invoke java.time.Instant "ofEpochMilli" long14157))) 21 | (clojure.core/defn get-long {:arglists (quote (["java.time.Instant" "java.time.temporal.TemporalField"]))} (^long [^js/JSJoda.Instant this14158 ^js/JSJoda.TemporalField java-time-temporal-TemporalField14159] (.getLong this14158 java-time-temporal-TemporalField14159))) 22 | (clojure.core/defn until {:arglists (quote (["java.time.Instant" "java.time.temporal.Temporal" "java.time.temporal.TemporalUnit"]))} (^long [^js/JSJoda.Instant this14160 ^js/JSJoda.Temporal java-time-temporal-Temporal14161 ^js/JSJoda.TemporalUnit java-time-temporal-TemporalUnit14162] (cljc.java-time.extn.calendar-awareness/calendar-aware-cljs (.until this14160 java-time-temporal-Temporal14161 java-time-temporal-TemporalUnit14162)))) 23 | (clojure.core/defn from {:arglists (quote (["java.time.temporal.TemporalAccessor"]))} (^js/JSJoda.Instant [^js/JSJoda.TemporalAccessor java-time-temporal-TemporalAccessor14163] (cljc.java-time.extn.calendar-awareness/calendar-aware-cljs (js-invoke java.time.Instant "from" java-time-temporal-TemporalAccessor14163)))) 24 | (clojure.core/defn is-after {:arglists (quote (["java.time.Instant" "java.time.Instant"]))} (^boolean [^js/JSJoda.Instant this14164 ^js/JSJoda.Instant java-time-Instant14165] (.isAfter this14164 java-time-Instant14165))) 25 | (clojure.core/defn minus-nanos {:arglists (quote (["java.time.Instant" "long"]))} (^js/JSJoda.Instant [^js/JSJoda.Instant this14166 ^long long14167] (.minusNanos this14166 long14167))) 26 | (clojure.core/defn is-supported {:arglists (quote (["java.time.Instant" "java.time.temporal.TemporalField"] ["java.time.Instant" "java.time.temporal.TemporalUnit"]))} (^boolean [this14168 G__14169] (.isSupported ^js/JSJoda.Instant this14168 G__14169))) 27 | (clojure.core/defn parse {:arglists (quote (["java.lang.CharSequence"]))} (^js/JSJoda.Instant [^java.lang.CharSequence java-lang-CharSequence14170] (js-invoke java.time.Instant "parse" java-lang-CharSequence14170))) 28 | (clojure.core/defn hash-code {:arglists (quote (["java.time.Instant"]))} (^int [^js/JSJoda.Instant this14171] (.hashCode this14171))) 29 | (clojure.core/defn adjust-into {:arglists (quote (["java.time.Instant" "java.time.temporal.Temporal"]))} (^js/JSJoda.Temporal [^js/JSJoda.Instant this14172 ^js/JSJoda.Temporal java-time-temporal-Temporal14173] (cljc.java-time.extn.calendar-awareness/calendar-aware-cljs (.adjustInto this14172 java-time-temporal-Temporal14173)))) 30 | (clojure.core/defn with {:arglists (quote (["java.time.Instant" "java.time.temporal.TemporalField" "long"] ["java.time.Instant" "java.time.temporal.TemporalAdjuster"]))} (^js/JSJoda.Instant [^js/JSJoda.Instant this14174 ^js/JSJoda.TemporalField java-time-temporal-TemporalField14175 ^long long14176] (cljc.java-time.extn.calendar-awareness/calendar-aware-cljs (.with this14174 java-time-temporal-TemporalField14175 long14176))) (^js/JSJoda.Instant [^js/JSJoda.Instant this14177 ^js/JSJoda.TemporalAdjuster java-time-temporal-TemporalAdjuster14178] (cljc.java-time.extn.calendar-awareness/calendar-aware-cljs (.with this14177 java-time-temporal-TemporalAdjuster14178)))) 31 | (clojure.core/defn now {:arglists (quote ([] ["java.time.Clock"]))} (^js/JSJoda.Instant [] (js-invoke java.time.Instant "now")) (^js/JSJoda.Instant [^js/JSJoda.Clock java-time-Clock14179] (js-invoke java.time.Instant "now" java-time-Clock14179))) 32 | (clojure.core/defn to-epoch-milli {:arglists (quote (["java.time.Instant"]))} (^long [^js/JSJoda.Instant this14180] (.toEpochMilli this14180))) 33 | (clojure.core/defn get-epoch-second {:arglists (quote (["java.time.Instant"]))} (^long [^js/JSJoda.Instant this14181] (.epochSecond this14181))) 34 | (clojure.core/defn compare-to {:arglists (quote (["java.time.Instant" "java.time.Instant"]))} (^int [^js/JSJoda.Instant this14182 ^js/JSJoda.Instant java-time-Instant14183] (.compareTo this14182 java-time-Instant14183))) 35 | (clojure.core/defn plus-seconds {:arglists (quote (["java.time.Instant" "long"]))} (^js/JSJoda.Instant [^js/JSJoda.Instant this14184 ^long long14185] (.plusSeconds this14184 long14185))) 36 | (clojure.core/defn get {:arglists (quote (["java.time.Instant" "java.time.temporal.TemporalField"]))} (^int [^js/JSJoda.Instant this14186 ^js/JSJoda.TemporalField java-time-temporal-TemporalField14187] (cljc.java-time.extn.calendar-awareness/calendar-aware-cljs (.get this14186 java-time-temporal-TemporalField14187)))) 37 | (clojure.core/defn equals {:arglists (quote (["java.time.Instant" "java.lang.Object"]))} (^boolean [^js/JSJoda.Instant this14188 ^java.lang.Object java-lang-Object14189] (.equals this14188 java-lang-Object14189))) 38 | --------------------------------------------------------------------------------