home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / dos / compat / d_getdat.txh < prev    next >
Encoding:
Text File  |  1995-10-09  |  704 b   |  37 lines

  1. @node _dos_getdate, dos
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <dos.h>
  6.  
  7. void _dos_getdate(struct dosdate_t *date);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function gets the current date and fills the @var{date} structure
  13. with these values.
  14.  
  15. @example
  16. struct dosdate_t @{
  17.   unsigned char  day;       /* 1-31          */
  18.   unsigned char  month;     /* 1-12          */
  19.   unsigned short year;      /* 1980-2099     */
  20.   unsigned char  dayofweek; /* 0-6, 0=Sunday */
  21. @};
  22. @end example
  23.  
  24. @xref{_dos_setdate}. @xref{_dos_gettime}. @xref{_dos_settime}.
  25.  
  26. @subheading Return Value
  27.  
  28. None.
  29.  
  30. @subheading Example
  31.  
  32. @example
  33. struct dosdate_t date;
  34.  
  35. _dos_getdate(&date);
  36. @end example
  37.