home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / os-include / dos / datetime.i < prev    next >
Text File  |  1993-10-15  |  1KB  |  51 lines

  1.     IFND    DOS_DATETIME_I
  2. DOS_DATETIME_I SET 1
  3.  
  4. **
  5. **    $VER: datetime.i 36.7 (12.7.90)
  6. **    Includes Release 40.15
  7. **
  8. **    Date and time assembler header for AmigaDOS
  9. **
  10. **    (C) Copyright 1989-1993 Commodore-Amiga, Inc.
  11. **        All Rights Reserved
  12. **
  13.  
  14.     IFND DOS_DOS_I
  15.     INCLUDE "dos/dos.i"
  16.     ENDC
  17.  
  18. *
  19. *    Data structures and equates used by the V1.4 DOS functions
  20. * StrtoDate() and DatetoStr()
  21. *
  22. *
  23.  
  24. *--------- String/Date structures etc
  25.     STRUCTURE    DateTime,0
  26.     STRUCT    dat_Stamp,ds_SIZEOF    ;DOS DateStamp
  27.     UBYTE    dat_Format        ;controls appearance of dat_StrDate
  28.     UBYTE    dat_Flags        ;see BITDEF's below
  29.     CPTR    dat_StrDay        ;day of the week string
  30.     CPTR    dat_StrDate        ;date string
  31.     CPTR    dat_StrTime        ;time string
  32.     LABEL    dat_SIZEOF
  33. *
  34. * You need this much room for each of the DateTime strings:
  35. LEN_DATSTRING    EQU    16
  36.  
  37. *    flags for dat_Flags
  38. *
  39.     BITDEF    DT,SUBST,0        ;substitute Today, Tomorrow, etc.
  40.     BITDEF    DT,FUTURE,1        ;day of the week is in future
  41. *
  42. *    date format values
  43. *
  44. FORMAT_DOS    equ    0        ; dd-mmm-yy
  45. FORMAT_INT    equ    1        ; yy-mm-dd
  46. FORMAT_USA    equ    2        ; mm-dd-yy
  47. FORMAT_CDN    equ    3        ; dd-mm-yy
  48. FORMAT_MAX    equ    FORMAT_CDN
  49.  
  50.     ENDC    ; DOS_DATETIME_I
  51.