|
|
|
|
|
|
|
8.3.2
The Header File iso_2.h |
|
|
|
|
|
|
|
|
The header file iso_2.h (Listing 8.2) contains basic function prototypes. |
|
|
|
|
|
|
|
|
This section describes the functions supplied by the SCDTL system that address issues specific to ISO date/time standards. |
|
|
|
|
| Listing 8.2 iso_2.h | |
|
|
|
|
/* iso_2.h
+-------------------------------------------+
| Copyright (C) 1995 by Lance W. Latham. |
| All rights reserved. |
+-------------------------------------------+
Header file in the SCDTL series for ISO-related matters.
Header files in the ISO series in SCDTL are:
1. "iso_1.h", definitions and data structures.
2. "iso_2.h", basic function prototypes.
*/
#ifndef __ISO_2_H
#define __ISO_2_H
#include "iso_1.h"
extern double iso_date_time_to_double (struct ISO_DATE_TIME *dt);
extern double iso_duration_to_double (struct ISO_DURATION *dur);
extern int iso_week_number (struct DATE_INFO *date);
extern struct DATE_INFO iso_first_day_of_week (int year, int week);
extern struct DATE_INFO iso_last_day_of_week (int year, int week);
extern struct DATE_INFO iso_ywd_to_date (struct ISO_YWD *ywd);
extern struct ISO_DATE_TIME iso_double_to_date_time (double diff);
extern struct ISO_DURATION iso_double_to_duration (double diff);
extern struct ISO_PERIOD iso_begin_and_duration_to_period
(struct ISO_DATE_TIME *beg, struct ISO_DURATION *dur);
extern struct ISO_PERIOD iso_begin_and_end_to_period
(struct ISO_DATE_TIME *beg, struct ISO_DATE_TIME *end);
extern struct ISO_PERIOD iso_duration_and_end_to_period
(struct ISO_DURATION *dur, struct ISO_DATE_TIME *end);
extern struct ISO_YWD iso_date_to_ywd (struct DATE_INFO *date);
#endif
|
|
|
|
|
|
|
|