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

About formatting and parsing #4

Open
MenoData opened this issue Mar 7, 2017 · 2 comments
Open

About formatting and parsing #4

MenoData opened this issue Mar 7, 2017 · 2 comments

Comments

@MenoData
Copy link

MenoData commented Mar 7, 2017

Nice to see people who are also interested in the French Revolutionary Calendar. I have so far understood that you are mainly interested in the algorithmic details of historic calendar around year 1792.

My plan is to also implement this calendar but with a strong focus on text representation, too. For example, I would like to see the representation "18. Brumaire VIII" (famous coupe of Bonaparte) by just specifying a format pattern in a formatter. I know, this will not be possible with the Oracle-calendar-design of Threeten-Extra and java.time.format-API, one of many reasons why I prefer my own time library Time4J. However, you could manually add extra format()- and parse()-methods to your FrenchRepublicanDate-class... Interesting for people who are not willing to consider alternatives to Threeten-Extra for whatever reason.

Of course, if you have any special feature requests for this calendar not yet realized then just let me know.

@MenoData
Copy link
Author

Finally I have finished and released my implementation of the French revolutionary calendar, see also the formatting example given in the javadoc. The formatting design takes into account that not every date in this calendar has a month so the specified pattern uses an or-syntax, either month-based or for sansculottides. I doubt if this will be possible in an easy way with the design of the format engine of Java-8 (using the java.time.format-package).

@ledahulevogyre
Copy link
Owner

Thank you for this information. It's nice to see there's a solution for these problems.

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

2 participants