X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fcalendar.h;h=ce3fcc2ee352f73193a44895fcaa70d63548a98e;hb=3d188ce69f19490938b8e961f289a050f648f39d;hp=be1e5cb8284dcdada5dfb9acd2999bf801ecd815;hpb=facb4a1ad3c9e8b2cdf55824680eed2afb91aebe;p=pspp diff --git a/src/data/calendar.h b/src/data/calendar.h index be1e5cb828..ce3fcc2ee3 100644 --- a/src/data/calendar.h +++ b/src/data/calendar.h @@ -19,7 +19,16 @@ along with this program. If not, see . #ifndef CALENDAR_H #define CALENDAR_H 1 -double calendar_gregorian_to_offset (int y, int m, int d, char **errorp); +struct fmt_settings; + +int *calendar_gregorian_adjust (int *y, int *m, int *d, + const struct fmt_settings *); +int calendar_raw_gregorian_to_offset (int y, int m, int d); + +double calendar_gregorian_to_offset (int y, int m, int d, + const struct fmt_settings *, + char **errorp); + void calendar_offset_to_gregorian (int ofs, int *y, int *m, int *d, int *yd); int calendar_offset_to_year (int ofs); int calendar_offset_to_month (int ofs);