dos2calendar

Converts DOS-style date and time to calendar time.

Library:LibC
Classification:Novell
Service:Time

Syntax

  #include <time.h> 
   
  time_t dos2calendar (
     unsigned long    dostime);
  

Parameters

dostime

(IN) Specifies the DOS-style date and time to convert.

Return Values

Returns the calendar time.

Remarks

The DOS epoch is 1980. The calendar time is adjusted to use the calendar epoch of 1970.

The dos_tm structure can be used to create a DOS-style time. You can then use the dos_tm_u union to create the dostime argument to pass to the dos2calendar function.

DOS has the following date and time format:

Figure 10-2 DOS format for date and time

See Also

calendar2dos