This isn't a answer on how to really get those to convert but, if you know when those 
calls were made then just figure using each whole number as a day for the date, and 
figure the whole number as the seconds or minutes for the time. Just use this if 
nobody knows what calls to use.

In a message dated 7/12/2004 1:06:12 AM Eastern Daylight Time, "Matt Horvat" <[EMAIL 
PROTECTED]> writes:

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

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

Reply via email to