calendar: Use sensible error reporting in calendar_gregorian_to_offset().
[pspp] / src / data / calendar.h
1 #ifndef CALENDAR_H
2 #define CALENDAR_H 1
3
4 double calendar_gregorian_to_offset (int y, int m, int d, char **errorp);
5 void calendar_offset_to_gregorian (int ofs, int *y, int *m, int *d, int *yd);
6 int calendar_offset_to_year (int ofs);
7 int calendar_offset_to_month (int ofs);
8 int calendar_offset_to_mday (int ofs);
9 int calendar_offset_to_yday (int ofs);
10 int calendar_offset_to_wday (int ofs);
11
12 int calendar_days_in_month (int y, int m);
13
14 #endif /* calendar.h */