< previous page page_70 next page >

Page 70
Listing 4.10 time_12.h
/* time_12.h


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


   Header file containing the definition of the auxiliary twelve hour
   time structure, TIME_12, in the SCDTL system.


   The twenty-four hour clock is the standard time format used in the
   SCDTL system. The TIME_12 structure is provided only for the purposes
   of converting 12 and 24 hour clock times, so that 12 hour clock times
   may be displayed or expressed in applications which require the use of
   this older system.
*/


#ifndef __TIME_12_H
#define __TIME_12_H


struct TIME_12      /* time structure, 12 hour clock */
{
   int hours;       /* hours,   01  12 */
   int minutes;     /* minutes, 00  59 */
   int seconds;     /* seconds, 00  59 */
   char ap;         /* 'A' for 'A.M.', 'P' for 'P.M.' */
};


#endif




 
< previous page page_70 next page >