_ConvertTimeToDOS

Converts calendar time to DOS-style date and time

Local Servers:nonblocking
Remote Servers:N/A
Classification:3.x, 4.x, 5.x, 6.x
Service:Time/Date Manipulation

Syntax

  #include <nwdos.h>  
   
  void _ConvertTimeToDOS  (  
     time_t             calendarTime,   
     struct _DOSDate  *fileDate,   
     struct _DOSTime  *fileTime);
  

Parameters

calendarTime
(IN) Specifies the calendar time to be converted to DOS-style date and time.
fileDate
(OUT) Points to the DOS-style date.
fileTime
(OUT) Points to the DOS-style time.

Remarks

This function converts calendar time to DOS-style date and time used in directory entries (used in the DIR structure).

The standard DOS date and time format is as follows:

Figure 12-2 DOS Date and Time Format

Calendar time represents the time in seconds since January 1, 1970 (UTC).

See Also

_ConvertDOSTimeToCalendar