Tim Astle <[EMAIL PROTECTED]> wrote in message
news:12128@palm-dev-forum...

Hi Tim!  Still grindin out the code!<bg>

Ascii to a Date Time TYPE...  Surely POSSIBLE  just not in the API
but a nice addition too it!

The date time TYPE is jus a struct...

DateTimeType dateTime;

// grab current
 TimSecondsToDateTime(TimGetSeconds(),&dateTime);

fill a different struct from it
 start.hours = dateTime.hour;
 start.minutes = dateTime.minute;
 end.hours = dateTime.hour + 1;
 end.minutes = 0;

or PARSE an ascii string...  12:22:30 pm

hr  12
min 22
sec 30

copy the value into a tyme type struct...

StrCopy(dateTime.hour, "12")

then yer back in action...

I know you no doubt already have a wrapper for it!

let me guess....

int ConvertAscii2tyme(CharPtr TimeString){

GoodLuck!









-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to