< previous page page_62 next page >

Page 62
Listing 4.4 scdtl_2.h
/* scdtl_2.h


   +-------------------------------------------+
   |   Copyright (C) 1995 by Lance W. Latham.  |
   |         All rights reserved.              |
   +-------------------------------------------+


   Standard C date/time library header file containing function
   prototypes for basic date and time functions.
   Header files in the basic SCDTL series are:


   1. "scdtl_1.h", definitions and data structures.
   2. "scdtl_2.h", basic date and time function prototypes.
   3. "scdtl_3.h", prototypes for functions related specifically to DOS.
   4. "scdtl_4.h", prototypes of functions related to days of observance.
   5. "scdtl_5.h", prototypes of functions for date and time comparisons.
   6. "scdtl_6.h", prototypes of functions for proleptic calendar
                   applications.
   7. "scdtl_7.h", definitions, data structures and function prototypes
                   for date/time stamping and compression applications.


*/


#ifndef __SCDTL_2_H
#define __SCDTL_2_H


#include "scdtl_1.h"


extern void arabic_to_roman (int n, char *s);
extern double date_and_time_to_JD (struct DATE_INFO *d,
                                   struct TIME_INFO *t);
extern struct DATE_INFO date_N_days_after_date
                        (double n, struct DATE_INFO *d);
extern struct DATE_INFO date_N_days_before_date
                        (double n, struct DATE_INFO *d);
extern double date_to_JD0 (struct DATE_INFO *d);
extern double days_between_dates (struct DATE_INFO *d1,
                                  struct DATE_INFO *d2);
extern int days_in_month (int month_index);
extern int days_in_month_for_year (int year, int month);
extern double days_since_date (struct DATE_INFO *d);
extern double days_until_date (struct DATE_INFO *d);
extern int day_of_week_index (struct DATE_INFO *d);
extern int day_of_week_index_JD0 (double jd);
extern char *day_of_week_abbreviation (int day_index);
extern char *day_of_week_name (int day_index);

 
< previous page page_62 next page >