Non-standard Calendar Support
See original GitHub issueThe current datetime64
API only supports the standard Gregorian calendar. In the climate science community (and presumably others), a number of other calendars systems are used, for example:
- Julian Calendar
- No Leap Day Calendar: Gregorian calendar without leap years, i.e., all years are 365 days long.
- All Leap Day Calendar: Gregorian calendar with every year being a leap year, i.e., all years are 366 days long.
I’d like to propose adding calendar support to the datetime64
API with the hope that changes here will trickle down into pandas and xray.
I’m not sure exactly how I’d like to see the API and would like to hear from those familiar with datetime64
on how it could be done. Of course, the default calendar behavior should remain the Gregorian calendar.
xref: https://github.com/xray/xray/issues/521, https://github.com/xray/xray/pull/523, https://github.com/pydata/pandas/issues/7307 cc: @shoyer @rabernat @ocefpaf
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:23 (14 by maintainers)
Top Results From Across the Web
Year To Date Sales For Non Standard Calendar Tables
In this example for non-standard calendars, I'm going to show you how ... Related Support Forums **** YTD & PYTD With April As...
Read more >Solved: Power BI Non Standard Calendar Previous Year
Solved: I am working with a floating fiscal year calendar. Each period is 28 days; however if 12/31 falls on a saturday then...
Read more >Time Comparison For Non Standard Date Tables In Power BI
In this article, I showcase how you can do a time comparison, comparing one time period to another time period based on a...
Read more >Calendar Year vs. Non-Standard Fiscal Year | Community
There is an option in Master Financial Calendar: checkbox “User-Defined Periods” that may help you. From the Acumatica Help: User-Defined ...
Read more >Academic Years, Academic Calendars, Payment Periods, and ...
In a standard term or nonstandard term academic calendar, a term is generally a ... Because of Pell Grant and Iraq and Afghanistan...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
👍 This would be very useful in the climate modeling community. Several IPCC class models need this functionality to analyze output.
@CommonClimate:
I don’t think github has any PM facility and your profile’s pretty anonymous, but if you want to talk offline you can reach me at njs@berkeley.edu