home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / zfamily.zip / zfamily / ZDTFUNCS / SAMPLE / ZDTDEFS.H < prev    next >
Text File  |  1993-09-01  |  3KB  |  103 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   : ZDTDEFS.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 definitions
  14. **
  15. */
  16.  #ifndef zdtDEFINITIONS
  17.  #define zdtDEFINITIONS 0
  18.  
  19.  #include <zdtrsrcs.rch>
  20.  
  21. /*
  22. **  Global Values
  23. */
  24.  #define  zdtZPREFIX  "ZDT"
  25.  #define  zdtDLLNAME  "FMZDTFUN" // The name of THIS library
  26.  
  27.  #define  zdtRESFSIZE         8  // Size of Resource File name
  28.  #define  zdtINVALID         -1  // Invalid value
  29.  
  30.  #define  zdtNOTAVAILABLE  ((PSZ)0)      //  Null string pointer
  31.  #define  zdtNOTFORMATTED  ((PSZ)0)      //  Null string pointer
  32.  
  33. /*
  34. **  Date and Time Values
  35. */
  36.  #define  zdtBASEYEAR       1860  // Base for year values
  37.  #define  zdtLASTYEAR       2100  // Higher value for years
  38.  
  39.  #define  zdtDAYSINYEAR      365  // Days in a year
  40.  #define  zdtDAYSINLEAP      366  // Days in a leap year
  41.  #define  zdtMONTHSINYEAR     12  // Months in a year
  42.  
  43.  #define  zdtSECONDSINDAY    86400  // Seconds in one day
  44.  #define  zdtSECONDSINHOUR    3600  // Seconds in one hour
  45.  #define  zdtSECONDSINMINUTE    60  // Seconds in one minute
  46.  #define  zdtMINUTESINHOUR      60  // Minutes in one hour
  47.  #define  zdtHOURSINDAY         24  // Hours in one day
  48.  
  49.  #define  zdtVALIDPERIOD   (zdtLASTYEAR - zdtBASEYEAR)
  50.  
  51.  #define  zdtEASTLIMIT        +720  // East limit for timezones (in minutes)
  52.  #define  zdtWESTLIMIT        -720  // West limit for timezones (in minutes)
  53.  
  54. /*
  55. **  Months and weekdays
  56. */
  57.  #define JANUARY     1
  58.  #define FEBRUARY    2
  59.  #define MARCH       3
  60.  #define APRIL       4
  61.  #define MAY         5
  62.  #define JUNE        6
  63.  #define JULY        7
  64.  #define AUGUST      8
  65.  #define SEPTEMBER   9
  66.  #define OCTOBER    10
  67.  #define NOVEMBER   11
  68.  #define DECEMBER   12
  69.  
  70.  #define MONDAY      1
  71.  #define TUESDAY     2
  72.  #define WEDNESDAY   3
  73.  #define THURSDAY    4
  74.  #define FRIDAY      5
  75.  #define SATURDAY    6
  76.  #define SUNDAY      7
  77.  
  78. /*
  79. **  Supported languages
  80. */
  81.  #define zdtDEFLANG      0   // Default value. Always first in set.
  82.  #define zdtITALANG      1   // Italian
  83.  #define zdtENGLANG      2   // English
  84.  #define zdtBPOLANG      3   // Brazilian Portuguese
  85.  #define zdtDEULANG      4   // German
  86.  #define zdtSVELANG      5   // Svedish
  87.  #define zdtESPLANG      6   // Spanish
  88.  #define zdtFRALANG      7   // French
  89.  #define zdtDUTLANG      8   // Dutch
  90.  #define zdtDANLANG      9   // Danish
  91.  #define zdtLSTLANG     10   // Special value. Always last in set.
  92.  
  93. /*
  94. **  NLS Values
  95. */
  96.  #define  zdtFSTLANG  (zdtDEFLANG + 1) // First supported language
  97.  #define  zdtSTRSIZE        256        // Buffer size for loading NLS strings
  98.  #define  zdtNOSEPARATOR   '\0'        // No date or time separator
  99.  #define  zdtESCAPE         '%'        // Escape character
  100.  #define  zdtNOID        ((PSZ)0)      // No language id available
  101.  
  102.  #endif
  103.