Взгляните на strptime , strftime и mktime от time.h.
Для разбора:
struct tm timeStruct = {0,0,0,0,0,0,0,0,0};
char *timeBuf = "03061983";
char *p = strptime(timeBuf, "%d%b%y", &timeStruct);
if (p != NULL)
{
// manipulate timeStruct.
// use mktime to get the time_t value
}
Написать:
time_t t;
struct tm * timeStruct;
char timeBuf[6];
time(&t);
timeStruct = localtime(&t);
strftime (timeBuf, 6, "%d%b%y", timeStruct)
С уважением,
Юсуф