Hi Jason
> I'm developing a pqa. I want to dynamically fill a select list based on the current
>year.
>
> Is there anyway I can retrieve the current year with a system call to the PalmOS &
>dynamically fill the html list?
use UInt32 TimGetSecounds() to get the seconds since 1/1/1904
and TimSecondsToDateTime (Uint32 seconds, DateTime *datetime) to convert the seconds
to a date/time structure
YYYY = datetime.year; ...
see the Palm OS Reference Manual for details
by(e)
Stephan
--
PGP Fingerprint: 0090 E02F 39A8 F2AF 6A79 43D7 B847 C26D 108E E2F0
PGP PublicKey: http://www.unet.univie.ac.at/~a9526342/sveigl.asc
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/