scsh-0.6/scsh/time1.h

27 lines
808 B
C
Raw Normal View History

1999-10-10 13:30:48 -04:00
#include <sys/types.h>
#include <time.h>
extern s48_value scheme_time(time_t *secs);
extern s48_value time_plus_ticks(int *hi_secs, int *lo_secs,
int *hi_ticks, int *lo_ticks);
extern s48_value time2date(time_t t, s48_value zone,
int *sec, int *min, int *hour,
int *mday, int *month, int *year,
const char **tz_name, int *tz_secs,
int *summer,
int *wday, int *yday);
extern s48_value date2time(int sec, int min, int hour,
int mday, int month, int year,
s48_value tz_name, s48_value tz_secs,
int summer,
time_t *secs);
extern s48_value format_date(const char *fmt, int sec, int min, int hour,
int mday, int month, int year,
s48_value tz, int summer,
int week_day, int year_day,
const char **ans);