You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When #inst values are parsed and printed in Clojure, by default the Gregorian calendar is used. In particular, this is a hybrid Julian / Gregorian calendar with a changeover in 1582.
On the other hand, ClojureScript uses the JavaScripts Date type for #inst values, which employs a proleptic Gregorian calendar. This host-specific aspect is reflected in #inst parsing and printing.
A consequence of this difference in default #inst handling is that older dates will be interpreted differently. For example #inst "1500" denotes two different instances in time in Clojure vs. ClojureScript.
This could be detailed in the "Differences" page, perhaps in the reader section.
The text was updated successfully, but these errors were encountered:
As an aside, note that CLJS-3291 addresses an issue related to this for the parsing of #inst values in code. (Runtime handling has always been in the proleptic Gregorian calendar.)
When
#inst
values are parsed and printed in Clojure, by default the Gregorian calendar is used. In particular, this is a hybrid Julian / Gregorian calendar with a changeover in 1582.On the other hand, ClojureScript uses the JavaScripts
Date
type for#inst
values, which employs a proleptic Gregorian calendar. This host-specific aspect is reflected in#inst
parsing and printing.A consequence of this difference in default
#inst
handling is that older dates will be interpreted differently. For example#inst "1500"
denotes two different instances in time in Clojure vs. ClojureScript.This could be detailed in the "Differences" page, perhaps in the reader section.
The text was updated successfully, but these errors were encountered: