home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / zfamily.zip / zfamily / ZDTFUNCS / SAMPLE / ZDTTYPES.H < prev    next >
Text File  |  1993-09-01  |  2KB  |  56 lines

  1. /*
  2. ** /----------------------------------------------------------------------\
  3. ** |             IBM Z Family Reusable Libraries/2 (5641-504)             |
  4. ** |----------------------------------------------------------------------|
  5. ** | (C) Copyright International Business Machines Corporation 1993, 1994 |
  6. ** \----------------------------------------------------------------------/
  7. **
  8. **  Header   : ZDTTYPES.H
  9. **  Author   : Dario de Judicibus (DEJUDICI at ROMEPPC)
  10. **  Created  : 03 Jul 1992
  11. **  Updated  : 01 Sep 1993 
  12. **  Version  : 4.12        
  13. **  Content  : Date & Time Services types
  14. **
  15. */
  16.  #ifndef zdtTYPES
  17.  #define zdtTYPES 0
  18.  
  19. /*
  20. **  Types
  21. */
  22.  typedef USHORT zdtSTRID   ; // String identifier
  23.  
  24.  typedef LONG   zdtDATE    ; // Number of days since Jan 1st, 1970
  25.  typedef LONG   zdtDAYS    ; // Any number of days
  26.  
  27.  typedef LONG   zdtDAY     ; // Day of month
  28.  typedef LONG   zdtYEAR    ; // Year belonging to zdtBASEYEAR..zdtLASTYEAR
  29.  typedef LONG   zdtMONTH   ; // Month
  30.  typedef LONG   zdtWEEK    ; // Week of the year
  31.  typedef LONG   zdtWEEKDAY ; // Day of week
  32.  
  33.  typedef LONG   zdtTIME    ; // Number of seconds since midnight
  34.  typedef LONG   zdtHOURS   ; // Hours of time
  35.  typedef LONG   zdtMINUTES ; // Minutes of time
  36.  typedef LONG   zdtSECONDS ; // Seconds of time
  37.  typedef SHORT  zdtZONE    ; // Offset with respect GMT (in minutes)
  38.  
  39. /*
  40. **  Types (structures)
  41. */
  42.  typedef struct zdtLocalDateTime
  43.  {
  44.    zdtDATE date ;  // Date
  45.    zdtTIME time ;  // Time
  46.    zdtZONE zone ;  // Timezone (with respect GMT)
  47.  }
  48.  zdtLOCALDT ;
  49.  
  50. /*
  51. **  Supported languages
  52. */
  53.  typedef LONG zdtLANGUAGE ;  // languages
  54.  
  55.  #endif
  56.