_ConvertDOSTimeToCalendar

Converts DOS-style date and time to calendar time

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

Syntax

  #include <nwtime.h>  
   
  time_t  _ConvertDOSTimeToCalendar  (  
     LONG   dateTime);
  

Parameters

dateTime
(IN) Specifies the DOS-style date and time to be converted.

Return Values

Returns the calendar time.

Remarks

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

The standard DOS date and time format is as follows:

Figure 12-1 DOS Date and Time Format

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

See Calendar program: Example (NDK: Sample Code).

See Also

_ConvertTimeToDOS