Skip to content

Instantly share code, notes, and snippets.

@CampingScorpion
Created October 24, 2011 01:13
Show Gist options
  • Save CampingScorpion/1308157 to your computer and use it in GitHub Desktop.
Save CampingScorpion/1308157 to your computer and use it in GitHub Desktop.
(defmacro do-at [date-time & body]
"like clojure.core.do except evalautes the
expression at the given time"
`(do-at* ~date-time
(fn [] ~@body)))
;; nice. Now we can see the actual code that was hiding
;; behind all of those parens and fn creation:
(do-at (DateMidnight. 2000 1 1)
(DateMidnight.)) ;;=> (DateMidnight. 2000 1 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment