Date
Functions for dates
|
Round a datetime object to any time laps in seconds |
|
Add a lagtime to a list of dates. |
|
Return the number of months between date1 and date2 |
|
Return the number of days in the month |
|
Return a list of timesteps from <tstart> to <tend> of length <tdelta> |
|
JSON serializer for objects not serializable by default json code extended from here: https://stackoverflow.com/questions/11875770/how-to-overcome-datetime-datetime-not-json-serializable-in-python |
|
Class for JSON encodings of datetimes. |
|
Return the timestep as string for the given int in seconds |
|
Given year, month, day return day of year Astronomical Algorithms, Jean Meeus, 2d ed, 1998, chap 7 |
|
Given year = Y and day of year = N, return year, month, day Astronomical Algorithms, Jean Meeus, 2d ed, 1998, chap 7 |
|
Given a datetime or a list with doy and year, lookup the week of the year |
|
Calculate the timesteps in weeks, months and days between 2 dates. |
|
Return two list with months (seasons) such that ss is the beginning of the first season and se the end of the first season. |
|
If year is a leap year return True else return False |