Hello
Where can u find these details? I have been looking for these details
(date, time, and duration) for a while inthe phoneCallDB.pdb, but could
not find anything.
Did u find any solution to your problem?

thanks

Matt Horvat wrote:
I have a call log database that stated the following format and code to retrieve values from it.
I am unable to display the time attribute in a text field. Any idea's on how i could format this?
Currently i have two alerts just to see what values i'm getting from the database.


I know i made a call 0n 7/11/04 at 11:52PM. In the custom alerts below i get the following values
Date = 51435
Time = 5940


7/12/04   = 51436
12:24AM =  24   12:35Am = 35  1:01Am = 257   1:02AM = 258.



How do i convert these back to date and time.

typedef struct
{
    UInt16 flags;
    DateType date;
    TimeType time;
               UInt32 duration;
    char* name;
    char* number;
}DBTele;

Unpacking the record

    ptr = MemHandleLock(handle);
    record ->flags = *(UInt16*)ptr;
    ptr += sizeof(record->flags);

DateToInt(record->date) =*(UInt16*)ptr;
FrmCustomAlert(custom,StrIToA(mystring, DateToInt(record->date)),"","");
ptr += sizeof(record->date);


TimeToInt(record->time) = *(UInt16*)(ptr);
FrmCustomAlert(custom,StrIToA(mystring, TimeToInt(record->time)),"","");
ptr += sizeof(record->time);


      record ->duration =*(UInt32*)ptr;
    ptr+=sizeof(record->duration);

    record->name = ptr;
    ptr+=StrLen(ptr)+1;

    record->number = ptr;
    *handleP = handle;

_________________________________________________________________
Get fast, reliable Internet access with MSN 9 Dial-up – now 2 months FREE! http://join.msn.click-url.com/go/onm00200361ave/direct/01/




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

Reply via email to