G' day all,

I am having a little trouble printing out the seconds in this routine
, can anyone tell me whats wrong with it..


FieldType * dateField;
FieldType * timeField;
DateTimeType dateTime;
static char dateAsString[9];
static char timeAsString[9];

dateField = GetObjectPtr(TestTableDateField);
timeField = GetObjectPtr(TestTableTimeField);

TimSecondsToDateTime(TimGetSeconds(), &dateTime);

DateToAscii((UInt8) dateTime.month, (UInt8) dateTime. day,
(UInt16) dateTime.year, dfMDYWithSlashes, dateAsString);

TimeToAscii((UInt8) dateTime.hour, (UInt8) dateTime.minute,
tfColon24h, timeAsString);

StrPrintF(" %s:%02d" ,dateTime.second);



_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail


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

Reply via email to