Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update "Differences" for inst calendar #367

Open
mfikes opened this issue Jan 4, 2021 · 1 comment
Open

Update "Differences" for inst calendar #367

mfikes opened this issue Jan 4, 2021 · 1 comment

Comments

@mfikes
Copy link
Member

mfikes commented Jan 4, 2021

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.

@mfikes
Copy link
Member Author

mfikes commented Jan 4, 2021

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant