It is pretty simple to get the seconds from the device and parse them
into a time. I wrote an email program that does this to have a POP
compliant human readable time stamp.
Here's a hint though, start with TimSecondsToDateTime(seconds, &dtTemp);
and go from there.

Cheers,
trv
-- 
Trevor Menagh      | The believer is happy;
www.trevreport.org | the doubter is wise.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, April 25, 2002 11:16 AM
To: Palm Developer Forum
Subject: Assistance with timestamps in database


Hi all -

  I am developing an inventory-like program, and I am having issues
storing time stamps.  Currently, I use the conduit piece to assign a
time-stamp to the record when the handheld syncs using the "C" function:
ctime.  This returns a value like: "Thu Apr 25 14:12:00 PM 2002".
  What I need to do is move that function from my conduit code into my
palm program to assign a timestamp when I write the record to the
database.  I have looked over the API reference, and I am not seeing a
way to get the current time from the Palm and return it in a format
similar to the above.  I don't need the format to be identical to the
above, but I do need both date and time stored in the same string.  Can
someone help point me in the right direction?

Thanks.

 - Marshall Parker
   Owner, MazeSoft Publications


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


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

Reply via email to