-
-
Save noisesmith/ede8248dadd6bc81d77d to your computer and use it in GitHub Desktop.
known discrepency in clj-time conversions?
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
kingfisher.core=> (time/date-time 0) | |
#object[org.joda.time.DateTime 0x724a8dea "0000-01-01T00:00:00.000Z"] | |
kingfisher.core=> (time/plus (time/date-time 0) (time/years 1)) | |
#object[org.joda.time.DateTime 0x2722cac0 "0001-01-01T00:00:00.000Z"] | |
kingfisher.core=> (clj-time.coerce/to-date (time/date-time 0)) | |
#inst "0001-01-03T00:00:00.000-00:00" | |
kingfisher.core=> (clj-time.coerce/to-date (time/plus (time/date-time 0) (time/years 1))) | |
#inst "0001-01-03T00:00:00.000-00:00" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment