This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user> (import 'java.util.Date) | |
java.util.Date | |
user> (def now (Date.)) | |
#'user/now | |
user> now | |
#inst "2014-09-17T03:14:13.821-00:00" | |
user> (def bean-map (bean now)) | |
#'user/bean-map | |
user> bean-map | |
{:day 3, :date 17, :time 1410923653821, :month 8, :seconds 13, :year 114, :class java.util.Date, :timezoneOffset -120, :hours 5, :minutes 14} | |
user> (.setMonth now 1) | |
nil | |
user> bean-map | |
{:day 1, :date 17, :time 1392610453821, :month 1, :seconds 13, :year 114, :class java.util.Date, :timezoneOffset -60, :hours 5, :minutes 14} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment