home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cslio205.zip / INCLUDE / CSTIME.H < prev    next >
C/C++ Source or Header  |  1997-01-21  |  1KB  |  53 lines

  1. /***********************************************************************
  2.  
  3.                        CSA Library, Free Evaluation Version 2.0.5 
  4.                                        Release: January 22th 1997 
  5.  
  6.        Defining the csTIME class.
  7.  
  8.                                            Copyright(c) 1994-1997 
  9.                                                           ComBits 
  10.                                                   The Netherlands 
  11. ***********************************************************************/
  12.  
  13. #ifndef __CSTIME_H
  14. #define __CSTIME_H
  15.  
  16. #include "time.h"
  17. #include "cstypes.h"
  18.  
  19. class csTIME
  20. {
  21. private:
  22.  
  23.   int hour;
  24.   int min;
  25.   int sec;
  26.   int hund;
  27.  
  28. public:
  29.   csTIME(void);
  30.  
  31.   void now(void);
  32.  
  33.   int  hours(void )      { return hour; }
  34.   int  minutes(void )    { return min; }
  35.   int  seconds(void )    { return sec; }
  36.   int  hunderdths(void ) { return hund; }
  37.  
  38.   void  hours(int      i) { hour=i; }
  39.   void  minutes(int    i) { min=i;  }
  40.   void  seconds(int    i) { sec=i;  }
  41.   void  hunderdths(int i) { hund=i; }
  42.  
  43.   long cs_time(void);
  44.   void cs_time(long t);
  45.  
  46.   csCHAR *asc_time(void);
  47.   operator char*()        { return asc_time(); }
  48.  
  49.  
  50. };
  51.  
  52. #endif
  53.