Skip to content

Commit cb3a950

Browse files
committed
formatting
1 parent 3523147 commit cb3a950

File tree

10 files changed

+179
-170
lines changed

10 files changed

+179
-170
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ but we'll also do a quick run-through here.
9191
#### Local Dates and/or Times
9292

9393
`LocalDate`, `LocalTime` and `LocalDateTime` are used to represent a date, time
94-
and date-time respectively without an offset or a timezone. The local time entities
94+
and date-time respectively without an offset or a time zone. The local time entities
9595
are used to represent human-based dates/times. They are a good fit for representing
9696
the time of various events:
9797

@@ -125,7 +125,7 @@ There are two types which deal with zones:
125125

126126
They do pretty much what you would expect from their name.
127127
You can think of the `Offset` time as a more concrete version of the `Zoned`
128-
time. For example, the same timezone can have different offsets throughout the
128+
time. For example, the same time zone can have different offsets throughout the
129129
year due to DST or governmental regulations.
130130

131131
```clj
@@ -341,7 +341,7 @@ Compare dates:
341341
#### Conversions
342342

343343
Time entities can be converted to other time entities if the target contains
344-
less information, e.g. (assuming we're in UTC timezone):
344+
less information, e.g. (assuming we're in UTC time zone):
345345

346346
```clj
347347
(jt/zoned-date-time (jt/offset-date-time 2015 9 28 1))
@@ -382,8 +382,8 @@ Any date which can be converted to an instant, can also be converted to a
382382
383383
An instance of `java.util.Date` serves the same purpose as the new
384384
`java.time.Instant`. It's a machine timestamp which isn't aware of the
385-
timezone. Please, do not get confused by the way it is printed by the Clojure
386-
printer - the UTC timezone is applied during formatting.
385+
time zone. Please, do not get confused by the way it is printed by the Clojure
386+
printer - the UTC time zone is applied during formatting.
387387
388388
Sometimes you'll have to work with the legacy `java.sql.{Date,Time,Timestamp}`
389389
types. The correspondence between the legacy types and the new Date-Time

docs/README.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h2><a href="#usage" id="usage"></a>Usage</h2>
5252
<h3><a href="#concept-run-through" id="concept-run-through"></a>Concept run-through</h3>
5353
<p>Java Time API may seem daunting. Instead of a single <code>java.util.Date</code> you have a <code>ZonedDateTime</code>, <code>OffsetDateTime</code>, <code>LocalDateTime</code>, <code>Instant</code>, and other types. You would be well served by reading the official documentation for the <a href="https://docs.oracle.com/javase/tutorial/datetime/iso/index.html">Java Time API</a>, but we’ll also do a quick run-through here.</p>
5454
<h4><a href="#local-dates-andor-times" id="local-dates-andor-times"></a>Local Dates and/or Times</h4>
55-
<p><code>LocalDate</code>, <code>LocalTime</code> and <code>LocalDateTime</code> are used to represent a date, time and date-time respectively without an offset or a timezone. The local time entities are used to represent human-based dates/times. They are a good fit for representing the time of various events:</p>
55+
<p><code>LocalDate</code>, <code>LocalTime</code> and <code>LocalDateTime</code> are used to represent a date, time and date-time respectively without an offset or a time zone. The local time entities are used to represent human-based dates/times. They are a good fit for representing the time of various events:</p>
5656
<ul>
5757
<li><code>LocalDate</code> - birthday, holiday
5858
<ul>
@@ -82,7 +82,7 @@ <h4><a href="#local-dates-andor-times" id="local-dates-andor-times"></a>Local Da
8282
</code></pre>
8383
<h4><a href="#zoned-dates" id="zoned-dates"></a>Zoned Dates</h4>
8484
<p>There are two types which deal with zones: * <code>OffsetDateTime</code> * see <a href="https://dm3.github.io/clojure.java-time/java-time.html#var-offset-date-time"><code>jt/offset-date-time</code></a> * <code>ZonedDateTime</code> * see <a href="https://dm3.github.io/clojure.java-time/java-time.html#var-zoned-date-time"><code>jt/zoned-date-time</code></a></p>
85-
<p>They do pretty much what you would expect from their name. You can think of the <code>Offset</code> time as a more concrete version of the <code>Zoned</code> time. For example, the same timezone can have different offsets throughout the year due to DST or governmental regulations.</p>
85+
<p>They do pretty much what you would expect from their name. You can think of the <code>Offset</code> time as a more concrete version of the <code>Zoned</code> time. For example, the same time zone can have different offsets throughout the year due to DST or governmental regulations.</p>
8686
<pre><code class="language-clj">(jt/offset-time 10)
8787
;=&gt; #&lt;java.time.OffsetTime 10:00+01:00&gt;
8888

@@ -210,7 +210,7 @@ <h3><a href="#an-appetizer" id="an-appetizer"></a>An appetizer</h3>
210210
;=&gt; false
211211
</code></pre>
212212
<h4><a href="#conversions" id="conversions"></a>Conversions</h4>
213-
<p>Time entities can be converted to other time entities if the target contains less information, e.g. (assuming we’re in UTC timezone):</p>
213+
<p>Time entities can be converted to other time entities if the target contains less information, e.g. (assuming we’re in UTC time zone):</p>
214214
<pre><code class="language-clj">(jt/zoned-date-time (jt/offset-date-time 2015 9 28 1))
215215
;=&gt; #object[java.time.ZonedDateTime "2015-09-28T01:00Z"]
216216

@@ -238,7 +238,7 @@ <h4><a href="#legacy-date-time-types" id="legacy-date-time-types"></a>Legacy Dat
238238
(jt/java-date 50000)
239239
;=&gt; #inst "1970-01-01T00:00:50.000-00:00"
240240
</code></pre>
241-
<p>An instance of <code>java.util.Date</code> serves the same purpose as the new <code>java.time.Instant</code>. It’s a machine timestamp which isn’t aware of the timezone. Please, do not get confused by the way it is printed by the Clojure printer - the UTC timezone is applied during formatting.</p>
241+
<p>An instance of <code>java.util.Date</code> serves the same purpose as the new <code>java.time.Instant</code>. It’s a machine timestamp which isn’t aware of the time zone. Please, do not get confused by the way it is printed by the Clojure printer - the UTC time zone is applied during formatting.</p>
242242
<p>Sometimes you’ll have to work with the legacy <code>java.sql.{Date,Time,Timestamp}</code> types. The correspondence between the legacy types and the new Date-Time entities is as follows:</p>
243243
<ul>
244244
<li><code>java.sql.Date</code> &lt;-&gt; <code>java.time.LocalDate</code></li>

docs/java-time.html

Lines changed: 143 additions & 136 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">0.3.4-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 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/9b7c9b924cff8614ac1be1f88fa2f9edd4c63bbe/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/9b7c9b924cff8614ac1be1f88fa2f9edd4c63bbe/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/9b7c9b924cff8614ac1be1f88fa2f9edd4c63bbe/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/9b7c9b924cff8614ac1be1f88fa2f9edd4c63bbe/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/9b7c9b924cff8614ac1be1f88fa2f9edd4c63bbe/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/9b7c9b924cff8614ac1be1f88fa2f9edd4c63bbe/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/9b7c9b924cff8614ac1be1f88fa2f9edd4c63bbe/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">0.3.4-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 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/35231478247b856ad91b3f37cbedee3143e24e2d/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/35231478247b856ad91b3f37cbedee3143e24e2d/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/35231478247b856ad91b3f37cbedee3143e24e2d/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/35231478247b856ad91b3f37cbedee3143e24e2d/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/35231478247b856ad91b3f37cbedee3143e24e2d/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/35231478247b856ad91b3f37cbedee3143e24e2d/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/35231478247b856ad91b3f37cbedee3143e24e2d/src/java_time/repl.clj#L14">view source</a></div></div></div></body></html>

0 commit comments

Comments
 (0)