home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / dos / sys / timeb / ftime.txh < prev    next >
Encoding:
Text File  |  1995-07-10  |  793 b   |  36 lines

  1. @c ----------------------------------------------------------------------
  2. @node ftime, time
  3. @subheading Syntax
  4.  
  5. @example
  6. #include <sys/timeb.h>
  7.  
  8. int ftime(struct timeb *buf);
  9. @end example
  10.  
  11. @subheading Description
  12.  
  13. This function stores the current time in the structure @var{buf}.  The
  14. format of @code{struct timeb} is:
  15.  
  16. @example
  17. struct timeb @{
  18.   time_t         time;     /* seconds since 00:00:00 GMT 1/1/1970 */
  19.   unsigned short millitm;  /* milliseconds */
  20.   short          timezone; /* difference between GMT and local, minutes */
  21.   short          dstflag;  /* set if daylight savings time in affect */
  22. @};
  23. @end example
  24.  
  25. @subheading Return Value
  26.  
  27. Zero on success, nonzero on error.
  28.  
  29. @subheading Example
  30.  
  31. @example
  32. struct timeb t;
  33. ftime(&t);
  34. @end example
  35.  
  36.