In the function
DateToAscii(Byte months, Byte days, Word years, DateFormatType dateFormat,
CharPtr pstring)

1) What are the DateFormatType types, ie what values can I enter here?
2) Also what will be the size of pString?
I beleive that this is referenced in DateTime.h but I cannot find
DateTime.h.

Note that the arguments to this function is Byte months, Byte Days,...
If I use the function
    NoOfSeconds TimGetSecondsI(void)
to get the seconds and then Use the function
    DateSecondsToDate(NoOfSeconds, DatePtr dateP)
the date is stored in the dateP structure.
Note that the variables for the dateP structure are Word year, Word month,
Word day. These are variables of size Word, while the arguments for Date to
Aschii is of size Byte.
In other words I cannot use
TimGetSeconds
DateSecondsToDate
DateToAscii to give me the date becuase variables of dateP do not match the
arguments DateToAscii.

Also please not that there is no corresponding function TimSecondsToTime to
get the time.

If I use the function TimSecondsToDateTime because of missmatch of variables
and arguments as described above.

3)How can I get the current time
4)How can I convert it to Ascii?


-- 
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