home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOSxA.lzx / pOSxA / dos / datetime.h next >
Encoding:
C/C++ Source or Header  |  1997-03-12  |  1.1 KB  |  51 lines

  1. #ifndef DOS_DATETIME_H
  2. #define DOS_DATETIME_H
  3.  
  4. /*******************************************************************
  5.  pOS / Amiga adapt
  6. *******************************************************************/
  7.  
  8. #ifndef DOS_DOS_H
  9. #include <dos/dos.h>
  10. #endif
  11. #ifndef __INC_POS_PDOS_DATETIME_H
  12. #include <p:pDos/DateTime.h>
  13. #endif
  14.  
  15.  
  16. struct DateTime
  17. {
  18.   struct DateStamp dat_Stamp;
  19.   UBYTE         dat_Format;
  20.   UBYTE         dat_Flags;
  21.  
  22.   UBYTE         dat_Day;
  23.   UBYTE         dat_Month;
  24.   UWORD         dat_Year;
  25.   UBYTE         dat_Weekday;
  26.   UBYTE         dat_Hour;
  27.   UBYTE         dat_Minute;
  28.   UBYTE         dat_Second;
  29.  
  30.   char         *dat_StrDay;
  31.   char         *dat_StrDate;
  32.   char         *dat_StrTime;
  33. };
  34.  
  35.  
  36.  
  37. #define    LEN_DATSTRING    pOS_DATETIMESTR_MAX
  38.  
  39. #define DTB_SUBST    DATETIMEB_Subst
  40. #define DTF_SUBST    DATETIMEF_Subst
  41. #define DTB_FUTURE    DATETIMEB_Future
  42. #define DTF_FUTURE    DATETIMEF_Future
  43.  
  44. #define FORMAT_DOS    DATETFRM_DOS
  45. #define FORMAT_INT    DATETFRM_INT
  46. #define FORMAT_USA    DATETFRM_USA
  47. #define FORMAT_CDN    DATETFRM_CDN
  48. #define FORMAT_MAX    DATETFRM_MAX
  49.  
  50. #endif /* DOS_DATETIME_H */
  51.