you can use
Uint TimGetSeconds( ) to get the current date and time since 12:00 AM ,
Jan1, 1904 , in seconds , and then convert the, number of seconds(UInt ),
recieved to DateTimeType by using TimSecondsToDateTime(UInt32 seconds,
DateTimePtr dateTimeP)
e.g.
UInt seconds;
DateTimePtr DateTime;
seconds = TimGetSeconds( );
TimSecondsToDateTime(seconds, DateTime);
Just one way that came off the top of my head, I am sure there must be other
ways to do it.
HTH,
Ritesh >:)
----- Original Message -----
From: K.Sridhar Babu
To: Palm Developer Forum
Sent: Tuesday, April 10, 2001 8:28 PM
Subject: how to find system time
Dear Friends,
I am relatively new to the palm programming.
How to find current system's date and time (Getting the time in
DateTimeType)?
I found some method
"void TimAdjust (DateTimePtr dateTimeP,Int32 adjustment)",
here by giving 0 as the adjustment we can get the system's time in the
dataTimeP parameter.
Is this the only solution for this problem?
Is this a good way of doing?
Is there any other way to find system's time?
Thanks in advance.
Sridhar
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/