Here's a code snip.
DateTimeType dateTime;
char timeString[20];
TimeToAscii(dateTime.hour,dateTime.minute,(TimeFormatType)PrefGetPreference(prefTimeFormat),timeString);
-----Original Message-----
From: Robert Graber [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, February 22, 2000 12:25 PM
To: Palm Developer Forum
Subject: TimeToAscii
I am having trouble using this system call.
I am doing the following to get the current system time in hh:mm am/pm
format (24 hour time).
DateTimeType CurTime;
Char Txt[10];
TimSecondsToDateTime(TimGetSeconds(), &CurTime);
TimeToAscii(CurTime.hour, CurTime.minute, true, Txt);
I am having trouble with the 3rd parameter. What is the correct way to
declare and define a "TimeFormatType" parameter?
Very truly yours,
Rob G.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html