home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / jËzyki_programowania / ace_basic / ace / include / dos / datetime.h next >
C/C++ Source or Header  |  1977-12-31  |  1KB  |  67 lines

  1. #ifndef DOS_DATETIME_H
  2. #define DOS_DATETIME_H 1
  3. /*
  4. ** datetime.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/02/95
  11. **
  12. **
  13. */
  14.  
  15.  
  16. /*
  17. ** This are the StructPointer defines for datetime.h
  18. */
  19. #ifndef DateTimePtr
  20. #define DateTimePtr ADDRESS
  21. #endif
  22. /*
  23. ** End of StructPointer defines for datetime.h
  24. */        
  25.  
  26. #ifndef DOS_DOS_H
  27. #include <dos/dos.h>
  28. #endif
  29.  
  30.  
  31. /*
  32.  *  Data structures and equates used by the V1.4 DOS functions
  33.  * StrtoDate() and DatetoStr()
  34.  */
  35.  
  36. /*--------- String/Date structures etc */
  37. STRUCT DateTime  
  38.     DateStamp dat_Stamp  /* DOS DateStamp */
  39.     BYTE    dat_Format      /* controls appearance of dat_StrDate */
  40.     BYTE    dat_Flags       /* see BITDEF's below */
  41.     ADDRESS   dat_StrDay         /* day of the week string */
  42.     ADDRESS   dat_StrDate        /* date string */
  43.     ADDRESS   dat_StrTime        /* time string */
  44. END STRUCT 
  45.  
  46. /* You need this much room for each of the DateTime strings: */
  47. #define LEN_DATSTRING   16
  48.  
  49. /*  flags for dat_Flags */
  50.  
  51. #define DTB_SUBST   0       /* substitute Today,  Tomorrow,  etc. */
  52. #define DTF_SUBST   1
  53. #define DTB_FUTURE  1       /* day of the week is in future */
  54. #define DTF_FUTURE  2
  55.  
  56. /*
  57.  *  date format values
  58.  */
  59.  
  60. #define FORMAT_DOS  0       /* dd-mmm-yy */
  61. #define FORMAT_INT  1       /* yy-mm-dd  */
  62. #define FORMAT_USA  2       /* mm-dd-yy  */
  63. #define FORMAT_CDN  3       /* dd-mm-yy  */
  64. #define FORMAT_MAX  FORMAT_CDN
  65.  
  66. #endif /* DOS_DATETIME_H */
  67.