annotate org/steph.org @ 136:46bc0f596b91

ideas from reading /life in the frozen state/.
author Robert McIntyre <rlm@mit.edu>
date Sun, 07 Sep 2014 21:35:52 -0700
parents 8714919e1e52
children
rev   line source
rlm@6 1 #+title: Gooodbye
rlm@6 2 #+author: Robert McIntyre
rlm@6 3 #+email: rlm@mit.edu
rlm@6 4 #+setupfile: ../../aurellem/org/setup.org
rlm@6 5 #+include: ../../aurellem/org/level-0.org
rlm@6 6
rlm@7 7 [[../images/steph.jpg]]
rlm@7 8
rlm@6 9 #+begin_src clojure :results output :exports both
rlm@8 10 (import '(org.joda.time DateMidnight Interval))
rlm@8 11
rlm@6 12 (def steph-birth (DateMidnight. 1990 12 2))
rlm@6 13
rlm@6 14 (def steph-death (DateMidnight. 2012 7 26))
rlm@6 15
rlm@6 16 (def life (Interval. steph-birth steph-death))
rlm@6 17
rlm@6 18 (printf
rlm@6 19 "%d days."
rlm@6 20 (.getStandardDays (.toDuration life)))
rlm@6 21 #+end_src
rlm@6 22
rlm@6 23 #+results:
rlm@6 24 : 7906 days.
rlm@6 25
rlm@78 26 Goodbye Stephanie. I will miss you.
rlm@6 27