Go to the first, previous, next, last section, table of contents.


_dos_getdate

Syntax

#include <dos.h>

void _dos_getdate(struct dosdate_t *date);

Description

This function gets the current date and fills the date structure with these values.

struct dosdate_t {
  unsigned char  day;       /* 1-31          */
  unsigned char  month;     /* 1-12          */
  unsigned short year;      /* 1980-2099     */
  unsigned char  dayofweek; /* 0-6, 0=Sunday */
};

See section _dos_setdate. See section _dos_gettime. See section _dos_settime.

Return Value

None.

Portability

not ANSI, not POSIX

Example

struct dosdate_t date;

_dos_getdate(&date);


Go to the first, previous, next, last section, table of contents.