delorie.com/djgpp/doc/libc/libc_168.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

_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

ANSI/ISO C No
POSIX No

Example

 
struct dosdate_t date;

_dos_getdate(&date);

  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004