Skip to content

Proposal to use Julian calendar before Sep 14, 1752 #8

Description

@Isaac-D-Cohen

I'm thinking of writing a patch for the hebcal website which would switch to the Julian calendar for dates prior to September 14, 1752. The main obstacle would be the JavaScript builtin Date class, which uses the Gregorian calendar. Unlike the Go builtin, the JS version actually enforces its Gregorian calendar on you. If you do:

const dt = new Date(0, 1, 29);
d.setFullYear(0);

you get:
0000-03-01T04:56:02.000Z

So switching to the Julian calendar would mean we need to stop using the Date builtin. We can replace it with our own class that doesn't enforce a calendar, but is this too big of a change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions