#ifndef _DAYLIGHT_SAVING_H
#define _DAYLIGHT_SAVING_H

#include "jd.h"
#include "app_general.h"

#define DST_UNKNOWN "-"
#define DST_NO      "noDST"
#define DST_YES     "DST"
#define DST_ENDING  "dst"

#ifdef ALL
int
declassify_dst(const char * dst_string);
#endif
 
char const *
dst2_classification (int the_year, int the_month, int the_day, 
		    int the_hour, int the_minute);

char const *
dst_classification (int the_year, int the_month, int the_day, 
		    int the_hour, int the_minute);
	   
void
jd_ymdhms (double jd, double tz,
           int * the_year, int * the_month, int * the_day,
	   int * the_hour, int * the_minute, int * the_second,
	   weekday_type * dow);
void
set_dst_dates (occurence_type the_dst_start_occurence,
               weekday_type   the_dst_start_day,
               int            the_dst_start_month,
               int            the_dst_start_hour,
               occurence_type the_dst_end_occurence,
               weekday_type   the_dst_end_day,
               int            the_dst_end_month,
               int            the_dst_end_hour,
               int 	      the_time_adaption);
int
get_dst_start (int the_year, int * the_month, int * the_day);

int
get_dst_end (int the_year, int * the_month, int * the_day);

int
get_dst_delta (void);
#endif