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

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

_dos_gettime

Syntax

 
#include <dos.h>

void _dos_gettime(struct dostime_t *time);

Description

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

 
struct dostime_t {
  unsigned char hour;     /* 0-23 */
  unsigned char minute;   /* 0-59 */
  unsigned char second;   /* 0-59 */
  unsigned char hsecond;  /* 0-99 */
};

See section _dos_settime. See section _dos_getdate. See section _dos_setdate.

Return Value

None.

Portability

ANSI/ISO C No
POSIX No

Example

 
struct dostime_t time;

_dos_gettime(&time);

  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004