Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>dos_getftime</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dos_getftime

Usage

   #include <dos.h>
   int dos_getftime(int fd, unsigned *date, unsigned *time):

Description

   Obtains the time and date of the file belonging to the file descriptor fd
   and  places it in the unsigned integers pointed to by the arguments date
   and  time. The format of these arguments is the same as those which are
   used  by the dos_setftime function and is as follows:


   date:
       bits 0 to 4     day of month (0-31)
       bits 5 to 8     month (0-12)
       bits 9 to 15    year (relative to 1980)
   time:
       bits 0 to 4     number of 2 second increments (0-29)
       bits 5 to 10    minutes (0-59)
       bits 11 to 15   hours (0-23)

Example 

   See dos_setftime

Return Value

   0 if successful, otherwise sets errno and returns the DOS error code.

See Also

   DOS package, dos_setftime




See Also: dos_setftime

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson