Skip to content

Instantly share code, notes, and snippets.

@rplevy
Created May 1, 2012 13:26
Show Gist options
  • Save rplevy/2567889 to your computer and use it in GitHub Desktop.
Save rplevy/2567889 to your computer and use it in GitHub Desktop.
furcula example
(apply
format
"%d-%02d-%02d %02d:%02d:%02d"
(-< (doto (Calendar/getInstance)
(.setTime (Date. 112 4 17 14 15 0))
(.add Calendar/MINUTE (* 15 offset)))
(.get Calendar/YEAR)
(.get Calendar/MONTH)
(.get Calendar/DAY_OF_MONTH)
(.get Calendar/HOUR)
(.get Calendar/MINUTE)
(.get Calendar/SECOND)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment