www.delorie.com/djgpp/doc/libc/libc_420.html   search  
libc.a reference

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

gettime

Syntax

 
#include <dos.h>

void gettime(struct time *);

Description

This function gets the current time. The return structure is as follows:

 
struct time {
  unsigned char ti_min;
  unsigned char ti_hour;
  unsigned char ti_hund;
  unsigned char ti_sec;
};

See section settime. See section getdate.

Return Value

None.

Portability

ANSI/ISO C No
POSIX No

Example

 
struct time t;
gettime(&t);


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004