Rewrite and improve formatted output routines.
[pspp-builds.git] / src / data / calendar.h
1 #ifndef CALENDAR_H
2 #define CALENDAR_H 1
3
4 typedef void calendar_error_func (void *aux, const char *, ...);
5
6 double calendar_gregorian_to_offset (int y, int m, int d,
7                                      calendar_error_func *, void *aux);
8 void calendar_offset_to_gregorian (int ofs, int *y, int *m, int *d, int *yd);
9 int calendar_offset_to_year (int ofs);
10 int calendar_offset_to_month (int ofs);
11 int calendar_offset_to_mday (int ofs);
12 int calendar_offset_to_yday (int ofs);
13 int calendar_offset_to_wday (int ofs);
14
15 #endif /* calendar.h */