Mercurial > thoughts
comparison org/steph.org @ 8:5676533b82d8
add import.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Mon, 17 Sep 2012 21:21:37 -0400 |
parents | 68ce1f2eb7a6 |
children | 8714919e1e52 |
comparison
equal
deleted
inserted
replaced
7:68ce1f2eb7a6 | 8:5676533b82d8 |
---|---|
7 | 7 |
8 | 8 |
9 [[../images/steph.jpg]] | 9 [[../images/steph.jpg]] |
10 | 10 |
11 #+begin_src clojure :results output :exports both | 11 #+begin_src clojure :results output :exports both |
12 (import '(org.joda.time DateMidnight Interval)) | |
13 | |
12 (def steph-birth (DateMidnight. 1990 12 2)) | 14 (def steph-birth (DateMidnight. 1990 12 2)) |
13 | 15 |
14 (def steph-death (DateMidnight. 2012 7 26)) | 16 (def steph-death (DateMidnight. 2012 7 26)) |
15 | 17 |
16 (def life (Interval. steph-birth steph-death)) | 18 (def life (Interval. steph-birth steph-death)) |