getftime()               Get File Date and Time
 
 #include   <dos.h>
 
 int           getftime(handle,ftimep);
 int           handle;                   Handle associated with file
 struct ftime  *ftimep;                  Pointer to structure
 
    getftime() gets the file time and date for the disk file associated
    with 'handle'.  'ftimep' points to the structure 'ftime' which is
    filled with the file's time and date.  The 'ftime' structure is
    defined as:
 
          struct ftime  {
               unsigned ft_tsec:  5;         /* Two seconds */
               unsigned ft_min:   6;         /* Minutes */
               unsigned ft_hour:  5;         /* Hours */
               unsigned ft_day:   5;         /* Days */
               unsigned ft_month: 4;         /* Months */
               unsigned ft_year:  7;         /* Year - 1980 */
          };
 
    Returns:    0 on success.  -1 is returned on error, and 'errno'
                (defined in <stdlib.h>) is set to either of
 
                EINVFNC       Invalid function number
                EBADF         Bad file number

Seealso:



This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster