-
Notifications
You must be signed in to change notification settings - Fork 206
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
Support for 360_day, 365_day, Julian, Proleptic Gregorian calendars #756
Comments
This is quite out of scope of lubridate. Concretely, what kind of support do you have in mind? |
I was hoping from #151 that
Being able to use |
I concur with the OP. It would be incredibly helpful to be able to run a function similar to:
Currently there is not a clean function for creating accurate date sequences with different calendar formats. |
This is out of scope for lubridate, but would be a great idea for a new package! |
Climate models often use different calendars from the one we are used to. Other than the standard R calendar, 360_day, 365_day and 366_day calendars are quite common. The CF-Conventions, which form the basis for the sharing of climate data in the netCDF format, specify the following calendars as possible:
Mixed Gregorian/Julian calendar as defined by Udunits. This is the default.
A Gregorian calendar extended to dates before 1582-10-15. That is, a year is a leap year if either (i) it is divisible by 4 but not by 100 or (ii) it is divisible by 400.
Gregorian calendar without leap years, i.e., all years are 365 days long.
Gregorian calendar with every year being a leap year, i.e., all years are 366 days long.
All years are 360 days divided into 30 day months.
Julian calendar.
In R, support for these calendars is limited but not non existent: the package
PCICt
includes support and basic arithmetic for these calendars. Would it be possible somehow to includelubridate
support forPCICt
calendars or objects?The text was updated successfully, but these errors were encountered: