|
leapc
|
Function prototypes for making days from standard time and computing day differences. More...

Go to the source code of this file.
Functions | |
| double | mkdays (int year, int mon, int mday) |
| Days of year, month and day of month. | |
| double | diff_days (int year1, int year0) |
| Compute difference in days between two years. | |
Function prototypes for making days from standard time and computing day differences.
Definition in file days.h.
| double diff_days | ( | int | year1, |
| int | year0 ) |
Compute difference in days between two years.
| year1 | Year to compute for. |
| year0 | Base year for comparison. |
| double mkdays | ( | int | year, |
| int | mon, | ||
| int | mday ) |
Days of year, month and day of month.
Uses the standard library's "make time" function to make the number of days for a year, month and month day. Divides the seconds by 86,400 (the number of seconds in a day) in order to answer days rather than seconds.
| year | Year from 1970. |
| mon | One-based month. Converts to a zero-based month. |
| mday | Day of the month starting at one. |