Skip to content

Commit 3d29377

Browse files
committed
[skip ci] try md
1 parent 020ffa1 commit 3d29377

File tree

4 files changed

+145
-136
lines changed

4 files changed

+145
-136
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ are used to represent human-based dates/times. They are a good fit for represent
9696
the time of various events:
9797

9898
* `LocalDate` - birthday, holiday
99-
* see [`jt/local-date`](http://dm3.github.io/clojure.java-time/java-time.html#var-local-date)
99+
* see [`jt/local-date`](http://dm3.github.io/clojure.java-time/java-time.html#var-local-date)
100100
* `LocalTime` - bus schedule, opening time of a shop
101-
* see [`jt/local-time`](http://dm3.github.io/clojure.java-time/java-time.html#var-local-time)
101+
* see [`jt/local-time`](http://dm3.github.io/clojure.java-time/java-time.html#var-local-time)
102102
* `LocalDateTime` - start of a competition
103-
* see [`jt/local-date-time`](http://dm3.github.io/clojure.java-time/java-time.html#var-local-date-time)
103+
* see [`jt/local-date-time`](http://dm3.github.io/clojure.java-time/java-time.html#var-local-date-time)
104104

105105
Example usage:
106106

docs/README.html

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,29 @@ <h2><a href="#usage" id="usage"></a>Usage</h2>
4747
<p>The <a href="https://dm3.github.io/clojure.java-time/">API</a> of the Clojure.Java-Time consists of one namespace, namely <code>java-time</code>. For the purposes of this guide, we will <code>require</code> the main namespace:</p>
4848
<pre><code class="language-clj">(require '[java-time :as jt]
4949
;; for REPL experimentation
50-
java-time.repl)
50+
'java-time.repl)
5151
</code></pre>
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>
5555
<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>
5656
<ul>
57-
<li><code>LocalDate</code> - birthday, holiday</li>
57+
<li><code>LocalDate</code> - birthday, holiday
58+
<ul>
5859
<li>see <a href="http://dm3.github.io/clojure.java-time/java-time.html#var-local-date"><code>jt/local-date</code></a></li>
59-
<li><code>LocalTime</code> - bus schedule, opening time of a shop</li>
60+
</ul>
61+
</li>
62+
<li><code>LocalTime</code> - bus schedule, opening time of a shop
63+
<ul>
6064
<li>see <a href="http://dm3.github.io/clojure.java-time/java-time.html#var-local-time"><code>jt/local-time</code></a></li>
61-
<li><code>LocalDateTime</code> - start of a competition</li>
65+
</ul>
66+
</li>
67+
<li><code>LocalDateTime</code> - start of a competition
68+
<ul>
6269
<li>see <a href="http://dm3.github.io/clojure.java-time/java-time.html#var-local-date-time"><code>jt/local-date-time</code></a></li>
6370
</ul>
71+
</li>
72+
</ul>
6473
<p>Example usage:</p>
6574
<pre><code class="language-clj">(jt/local-date 2015 10)
6675
;=&gt; #&lt;java.time.LocalDate 2015-10-01&gt;

0 commit comments

Comments
 (0)