|
|
|
|
|
|
|
Chapter 4
Basic Header Files |
|
|
|
|
|
|
|
|
Ten header files are termed "basic" to the SCDTL system (Listings 4.14.10). These are primarily the two files that define the basic data structures used throughout the system, TIME_INFO and DATE_INFO, and the seven files related to the Western calendar. |
|
|
|
|
|
|
|
|
In addition, a tenth header file, time_12.h, defines the TIME_12 structure, which is an auxiliary structure used for applications that require a 12-hour clock format. The SCDTL system uses the 24-hour clock as its standard definition of time, as defined in the header file timeinfo.h, so this tenth header file and its associated structure should not be considered essential to SCDTL. It is presented at this point simply because the definitions of basic data structures must occur here, from the standpoint of pedagogy and organization. |
|
|
|
|
|
|
|
|
The SCDTL header files divide responsibility in the following way: |
|
|
|
|
| |
|
|
|
|
basic definitions and data structures. |
|
|
|
| | |
|
|
|
|
basic date and time function prototypes. |
|
|
|
| | |
|
|
|
|
prototypes for functions related specifically to DOS. |
|
|
|
| | |
|
|
|
|
prototypes of functions related to days of observance. |
|
|
|
| | |
|
|
|
|
prototypes of functions for date and time comparisons. |
|
|
|
| | |
|
|
|
|
prototypes of functions for proleptic calendar applications. |
|
|
|
| | |
|
|
|
|
definitions, data structures, and function prototypes for date/time stamping and compression applications. |
|
|
|
|
|
|
|