826_____________________________________________ 14

 ,            
 DateToStr, TimeToStr, DateTimeToStr,   -
 .

   StrToDate, StrToDateTime, StrToTime 
     ,      TDateTime,
 StrToDate   .     
 ,  ,     DateSe-
parator.   ,     -
  ShortDateFormat.  : m/d/y, d/m/y 
y/m/d.     ,     (m/d 
d/m)  .         ( 0  99),
   .

 StrToTime   ,   
   ,  ,    
TimeSeparator: hh:mm:ss.    .  StrToDateTi-
me       ,  
.

       -
 EConvertError.

   dos.h       date:

struct date{

int da year;     //  

char da day;     //  

char da_mon;     //   (1  )
};

      ,     -
.     .  
  D  date      :

ttinclude <dos.h>

struct date D;

getdate(&D) ;

       : D.da_year,
D.da_mon, D.da_day.

      :

struct time {

unsigned char ti min;      // 

unsigned char ti_hour;     // 

unsigned char ti_hund;     //   

unsigned char ti sec;      // 
};

 time     ,   0  1
 1970  .         -
   ,  , ,   ..,   
ctime      .  :

Mon Nov 21 11:31:54 1983\n\0

 ,   .

,   time,      gmti-
me (  )  localtime (   ) -
     tm:

struct tm (

int tm sec;         // 
int tm_min;         // 