Skip to content

Commit 0f60740

Browse files
committed
wip
1 parent 392a74b commit 0f60740

File tree

7 files changed

+323
-313
lines changed

7 files changed

+323
-313
lines changed

docs/index.html

Lines changed: 1 addition & 2 deletions
Large diffs are not rendered by default.

docs/java-time.api.html

Lines changed: 147 additions & 144 deletions
Large diffs are not rendered by default.

docs/java-time.html

Lines changed: 147 additions & 144 deletions
Large diffs are not rendered by default.

docs/java-time.repl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<!DOCTYPE html PUBLIC ""
22
"">
3-
<html><head><meta charset="UTF-8" /><title>java-time.repl documentation</title><link rel="stylesheet" type="text/css" href="css/default.css" /><link rel="stylesheet" type="text/css" href="css/highlight.css" /><script type="text/javascript" src="js/highlight.min.js"></script><script type="text/javascript" src="js/jquery.min.js"></script><script type="text/javascript" src="js/page_effects.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div id="header"><h2>Generated by <a href="https://github.com/weavejester/codox">Codox</a></h2><h1><a href="index.html"><span class="project-title"><span class="project-name">Clojure.java-time</span> <span class="project-version">1.1.1-SNAPSHOT</span></span></a></h1></div><div class="sidebar primary"><h3 class="no-link"><span class="inner">Project</span></h3><ul class="index-link"><li class="depth-1 "><a href="index.html"><div class="inner">Index</div></a></li></ul><h3 class="no-link"><span class="inner">Topics</span></h3><ul><li class="depth-1 "><a href="README.html"><div class="inner"><span>Clojure.Java-Time</span></div></a></li><li class="depth-1 "><a href="CHANGELOG.html"><div class="inner"><span>Changelog</span></div></a></li></ul><h3 class="no-link"><span class="inner">Namespaces</span></h3><ul><li class="depth-1"><a href="java-time.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>java-time</span></div></a></li><li class="depth-2 branch"><a href="java-time.api.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>api</span></div></a></li><li class="depth-2 current"><a href="java-time.repl.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>repl</span></div></a></li></ul></div><div class="sidebar secondary"><h3><a href="#top"><span class="inner">Public Vars</span></a></h3><ul><li class="depth-1"><a href="java-time.repl.html#var-show-adjusters"><div class="inner"><span>show-adjusters</span></div></a></li><li class="depth-1"><a href="java-time.repl.html#var-show-fields"><div class="inner"><span>show-fields</span></div></a></li><li class="depth-1"><a href="java-time.repl.html#var-show-formatters"><div class="inner"><span>show-formatters</span></div></a></li><li class="depth-1"><a href="java-time.repl.html#var-show-graph"><div class="inner"><span>show-graph</span></div></a></li><li class="depth-1"><a href="java-time.repl.html#var-show-path"><div class="inner"><span>show-path</span></div></a></li><li class="depth-1"><a href="java-time.repl.html#var-show-timezones"><div class="inner"><span>show-timezones</span></div></a></li><li class="depth-1"><a href="java-time.repl.html#var-show-units"><div class="inner"><span>show-units</span></div></a></li></ul></div><div class="namespace-docs" id="content"><h1 class="anchor" id="top">java-time.repl</h1><div class="doc"><div class="markdown"></div></div><div class="public anchor" id="var-show-adjusters"><h3>show-adjusters</h3><div class="usage"><code>(show-adjusters)</code></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/dm3/clojure.java-time/blob/3d171eddb938ab7d82e5880823bb55079edbd7dc/src/java_time/repl.clj#L11">view source</a></div></div><div class="public anchor" id="var-show-fields"><h3>show-fields</h3><div class="usage"><code>(show-fields)</code></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/dm3/clojure.java-time/blob/3d171eddb938ab7d82e5880823bb55079edbd7dc/src/java_time/repl.clj#L17">view source</a></div></div><div class="public anchor" id="var-show-formatters"><h3>show-formatters</h3><div class="usage"><code>(show-formatters)</code></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/dm3/clojure.java-time/blob/3d171eddb938ab7d82e5880823bb55079edbd7dc/src/java_time/repl.clj#L20">view source</a></div></div><div class="public anchor" id="var-show-graph"><h3>show-graph</h3><div class="usage"><code>(show-graph)</code></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/dm3/clojure.java-time/blob/3d171eddb938ab7d82e5880823bb55079edbd7dc/src/java_time/repl.clj#L26">view source</a></div></div><div class="public anchor" id="var-show-path"><h3>show-path</h3><div class="usage"><code>(show-path from to)</code></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/dm3/clojure.java-time/blob/3d171eddb938ab7d82e5880823bb55079edbd7dc/src/java_time/repl.clj#L30">view source</a></div></div><div class="public anchor" id="var-show-timezones"><h3>show-timezones</h3><div class="usage"><code>(show-timezones)</code></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/dm3/clojure.java-time/blob/3d171eddb938ab7d82e5880823bb55079edbd7dc/src/java_time/repl.clj#L23">view source</a></div></div><div class="public anchor" id="var-show-units"><h3>show-units</h3><div class="usage"><code>(show-units)</code></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/dm3/clojure.java-time/blob/3d171eddb938ab7d82e5880823bb55079edbd7dc/src/java_time/repl.clj#L14">view source</a></div></div></div></body></html>
3+
<html><head><meta charset="UTF-8" /><title>java-time.repl documentation</title><link rel="stylesheet" type="text/css" href="css/default.css" /><link rel="stylesheet" type="text/css" href="css/highlight.css" /><script type="text/javascript" src="js/highlight.min.js"></script><script type="text/javascript" src="js/jquery.min.js"></script><script type="text/javascript" src="js/page_effects.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div id="header"><h2>Generated by <a href="https://github.com/weavejester/codox">Codox</a></h2><h1><a href="index.html"><span class="project-title"><span class="project-name">Clojure.java-time</span> <span class="project-version">1.1.1-SNAPSHOT</span></span></a></h1></div><div class="sidebar primary"><h3 class="no-link"><span class="inner">Project</span></h3><ul class="index-link"><li class="depth-1 "><a href="index.html"><div class="inner">Index</div></a></li></ul><h3 class="no-link"><span class="inner">Topics</span></h3><ul><li class="depth-1 "><a href="README.html"><div class="inner"><span>Clojure.Java-Time</span></div></a></li><li class="depth-1 "><a href="CHANGELOG.html"><div class="inner"><span>Changelog</span></div></a></li></ul><h3 class="no-link"><span class="inner">Namespaces</span></h3><ul><li class="depth-1"><a href="java-time.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>java-time</span></div></a></li><li class="depth-2 branch"><a href="java-time.api.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>api</span></div></a></li><li class="depth-2 current"><a href="java-time.repl.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>repl</span></div></a></li></ul></div><div class="sidebar secondary"><h3><a href="#top"><span class="inner">Public Vars</span></a></h3><ul><li class="depth-1"><a href="java-time.repl.html#var-show-adjusters"><div class="inner"><span>show-adjusters</span></div></a></li><li class="depth-1"><a href="java-time.repl.html#var-show-fields"><div class="inner"><span>show-fields</span></div></a></li><li class="depth-1"><a href="java-time.repl.html#var-show-formatters"><div class="inner"><span>show-formatters</span></div></a></li><li class="depth-1"><a href="java-time.repl.html#var-show-graph"><div class="inner"><span>show-graph</span></div></a></li><li class="depth-1"><a href="java-time.repl.html#var-show-path"><div class="inner"><span>show-path</span></div></a></li><li class="depth-1"><a href="java-time.repl.html#var-show-timezones"><div class="inner"><span>show-timezones</span></div></a></li><li class="depth-1"><a href="java-time.repl.html#var-show-units"><div class="inner"><span>show-units</span></div></a></li></ul></div><div class="namespace-docs" id="content"><h1 class="anchor" id="top">java-time.repl</h1><div class="doc"><div class="markdown"></div></div><div class="public anchor" id="var-show-adjusters"><h3>show-adjusters</h3><div class="usage"><code>(show-adjusters)</code></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/dm3/clojure.java-time/blob/392a74bcf06e57b66d4d812f2990e801c61bd1e0/src/java_time/repl.clj#L11">view source</a></div></div><div class="public anchor" id="var-show-fields"><h3>show-fields</h3><div class="usage"><code>(show-fields)</code></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/dm3/clojure.java-time/blob/392a74bcf06e57b66d4d812f2990e801c61bd1e0/src/java_time/repl.clj#L17">view source</a></div></div><div class="public anchor" id="var-show-formatters"><h3>show-formatters</h3><div class="usage"><code>(show-formatters)</code></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/dm3/clojure.java-time/blob/392a74bcf06e57b66d4d812f2990e801c61bd1e0/src/java_time/repl.clj#L20">view source</a></div></div><div class="public anchor" id="var-show-graph"><h3>show-graph</h3><div class="usage"><code>(show-graph)</code></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/dm3/clojure.java-time/blob/392a74bcf06e57b66d4d812f2990e801c61bd1e0/src/java_time/repl.clj#L26">view source</a></div></div><div class="public anchor" id="var-show-path"><h3>show-path</h3><div class="usage"><code>(show-path from to)</code></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/dm3/clojure.java-time/blob/392a74bcf06e57b66d4d812f2990e801c61bd1e0/src/java_time/repl.clj#L30">view source</a></div></div><div class="public anchor" id="var-show-timezones"><h3>show-timezones</h3><div class="usage"><code>(show-timezones)</code></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/dm3/clojure.java-time/blob/392a74bcf06e57b66d4d812f2990e801c61bd1e0/src/java_time/repl.clj#L23">view source</a></div></div><div class="public anchor" id="var-show-units"><h3>show-units</h3><div class="usage"><code>(show-units)</code></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/dm3/clojure.java-time/blob/392a74bcf06e57b66d4d812f2990e801c61bd1e0/src/java_time/repl.clj#L14">view source</a></div></div></div></body></html>

src/java_time.cljc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@
9494
(def ^{:arglists (quote ([^ZonedDateTime zdt z])), :doc "Sets the zone to the specified value ensuring that the result has the same instant, e.g.:\n\n (zoned-date-time 2015)\n => #<java.time.ZonedDateTime 2015-01-01T00:00+00:00[Europe/London]>\n (with-zone-same-instant *1 \"America/New_York\")\n => #<java.time.ZonedDateTime 2014-12-31T18:00-05:00[America/New_York]>"} with-zone-same-instant java-time.zone/with-zone-same-instant)
9595
(def ^{:arglists (quote ([o offset])), :doc "Sets the offset to the specified value ensuring that the local time stays\n the same.\n\n (offset-time 10 30 0 0 +2)\n => #<java.time.OffsetTime 10:30+02:00>\n (with-offset *1 +3)\n => #<java.time.OffsetTime 10:30+03:00>"} with-offset java-time.zone/with-offset)
9696
(def ^{:arglists (quote ([o offset])), :doc "Sets the offset to the specified value ensuring that the result has the same instant, e.g.:\n\n (offset-time 10 30 0 0 +2)\n => #<java.time.OffsetTime 10:30+02:00>\n (with-offset-same-instant *1 +3)\n => #<java.time.OffsetTime 11:30+03:00>"} with-offset-same-instant java-time.zone/with-offset-same-instant)
97-
#?(:bb nil :default (def ^{:arglists ([] [instant] [instant zone]), :doc "Returns a mock implementation of the `java.time.Clock`. The mock supports\n `advance-clock!` operation which allows to move the time in the clock, e.g.:\n\n ```\n (let [clock (mock-clock 0 \"UTC\")]\n (with-clock clock\n (is (= (value clock) 0))\n (is (= (instant) (instant 0)))\n (advance-clock! clock (j/millis 1))\n (is (= (value clock) 1))\n (is (= (instant) (instant 1)))))\n ```\n\n You can move the clock back via advancing by a negative temporal amount.\n\n Creates a clock at epoch in the default time zone when called without arguments.\n \n Not available in babashka.", :tag java.time.Clock} mock-clock ^{:java-time.dev.gen/no-babashka true} java-time.mock/mock-clock))
98-
#?(:bb nil :default (def ^{:arglists ([^IMockClock clock amount]), :doc "Advances the `clock` by the given time `amount`.\n\n This mutates the mock clock.\n \n Not available in babashka."} advance-clock! ^{:java-time.dev.gen/no-babashka true} java-time.mock/advance-clock!))
99-
#?(:bb nil :default (def ^{:arglists ([^Clock clock time]), :doc "Sets the `clock` to the given `time`.\n\n This mutates the mock clock.\n\n Not available in babashka."} set-clock! ^{:java-time.dev.gen/no-babashka true} java-time.mock/set-clock!))
97+
#?(:bb nil :default (def ^{:arglists (quote ([] [instant] [instant zone])), :doc "Returns a mock implementation of the `java.time.Clock`. The mock supports\n `advance-clock!` operation which allows to move the time in the clock, e.g.:\n\n ```\n (let [clock (mock-clock 0 \"UTC\")]\n (with-clock clock\n (is (= (value clock) 0))\n (is (= (instant) (instant 0)))\n (advance-clock! clock (j/millis 1))\n (is (= (value clock) 1))\n (is (= (instant) (instant 1)))))\n ```\n\n You can move the clock back via advancing by a negative temporal amount.\n\n Creates a clock at epoch in the default time zone when called without arguments.\n \n Not available in babashka.", :tag java.time.Clock} mock-clock java-time.mock/mock-clock))
98+
#?(:bb nil :default (def ^{:arglists (quote ([^IMockClock clock amount])), :doc "Advances the `clock` by the given time `amount`.\n\n This mutates the mock clock.\n \n Not available in babashka."} advance-clock! java-time.mock/advance-clock!))
99+
#?(:bb nil :default (def ^{:arglists (quote ([^Clock clock time])), :doc "Sets the `clock` to the given `time`.\n\n This mutates the mock clock.\n\n Not available in babashka."} set-clock! java-time.mock/set-clock!))
100100
(def ^{:arglists (quote ([e] [e value-fn])), :doc "Converts a time entity to a map of property key -> value as defined by the\n passed in `value-fn`. By default the actual value of the unit/field is\n produced.\n\n ```\n (as-map (duration))\n => {:nanos 0, :seconds 0}\n\n (as-map (local-date 2015 1 1))\n => {:year 2015, :month-of-year 1, :day-of-month 1, ...}\n ```"} as-map java-time.convert/as-map)
101101
(def ^{:arglists (quote ([amount from-unit to-unit])), :doc "Converts an amount from one unit to another. Returns a map of:\n\n * `:whole` - the whole part of the conversion in the `to` unit\n * `:remainder` - the remainder in the `from` unit\n\n Arguments may be keywords or instances of `TemporalUnit`.\n\n Converts between precise units--nanos up to weeks---treating days as exact\n multiples of 24 hours. Also converts between imprecise units---months up to\n millennia. See `ChronoUnit` and `IsoFields` for all of the supported units.\n Does not convert between precise and imprecise units.\n\n Throws `ArithmeticException` if long overflow occurs during computation.\n\n ```\n (convert-amount 10000 :seconds :hours)\n => {:remainder 2800 :whole 2}\n ```"} convert-amount java-time.convert/convert-amount)
102102
(def ^{:arglists (quote ([o])), :deprecated true, :doc "Converts a date entity to a `java.util.Date`.\n\n *Deprecated*:\n This function only has a single arity and works for entities directly\n convertible to `java.time.Instant`. Please consider using [[java-date]]\n instead.", :tag java.util.Date} to-java-date java-time.convert/to-java-date)

0 commit comments

Comments
 (0)