convert time format

I’m making feed engine with c++

but can’t solve time format

belows are my code sample
CString strTime = “090101500”;
CString strCode = “KSXXXXXXX”;
CString strVol = “1”;
CString strPrice = “1.22”;

float fPrice = atof(strPrice);

K x,y;
x =
knk(4,kt(atol(strTime.GetBuffer(0))),ks(strCode.GetBuffer(0)),kf(fPrice),ki(atoi(strVol.GetBuffer(0))));
k(-handle,“insert”,ks(“trade”),x,0);

but after inserting trade table shows that time
25:01:41.500 KSXXXXXXX 1.22 1

what’s wrong ???

maybe try kt((I)strTime.GetBuffer(0))? kt is supposed to take an int, not a long

btw, what are the constructors for stamp & span? i don’t see anything about them in k.h or c.html