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

Datepicker: Support of multiple Calendars, BCE dates, and various Precisions #8586

Closed
tobiasschweizer opened this issue Nov 22, 2017 · 2 comments

Comments

@tobiasschweizer
Copy link
Contributor

Bug, feature request, or proposal:

feature request

What is the expected behavior?

Support of:

  • dates Before Christ (BC) / Before Common Era (BCE)
  • other calendar formats besides Gregorian (e.g., Julian calendar), including automatic conversion of the selected date when changing the calendar
  • precisions: day, month, year

Internally, Julian Day Numbers could be used for calculations.

What is the current behavior?

Currently, Datepicker supports the selection of a Gregorian CE date with day precision.

What are the steps to reproduce?

N/A

What is the use-case or motivation for changing an existing behavior?

The use of Datepicker in the context of humanities disciplines. We are developing a GUI based on Angular v4 (https://github.com/dhlab-basel/Salsah) for our backend Knora (http://www.knora.org). Knora internally uses Julian Day Numbers and currently supports Gregorian and Julian Calendar dates (BCE and CE): http://www.knora.org/documentation/manual/rst/knora-ontologies/knora-base.html?highlight=bce#datevalue.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

N/A

Is there anything else we should know?

Before creating this issue, I made a post on stackoverflow: https://stackoverflow.com/questions/47352386/angular-material-datepicker-support-of-bce-dates-and-calendars/47400894#47400894

I really do not want to create another datepicker from scratch. I would rather like to help implement the requested features based on the existing material 2 datepicker. I think there are already enough JS date libraries that could be used for calculations between different calendar formats (http://npmjs.com/package/moonbeams).

@jelbourn
Copy link
Member

Duplicate of #2519

@jelbourn jelbourn marked this as a duplicate of #2519 Nov 23, 2017
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants