Sorry, this might help...

 UInt32 dateP;
 UInt32 currentTime;
 UInt32 currentTimeInDays;
 UInt32 hotSyncTimeInDays;

 // grabbing the time of last successful hotsync
 DlkGetSyncInfo(&dateP, NULL, NULL, NULL, NULL, NULL);

 hotSyncTimeInDays = dateP/86400;

It is in seconds. We do a comparison to see if it has been more than 7 days
since the last sync. If it has, we blow away the database. Here is the rest
of it to give you a better idea of what you are working with.

 // grabbing current time
 currentTime = TimGetSeconds();

 currentTimeInDays = currentTime/86400;

 // if the last successful hotsync was more than one week ago
 // then delete the database, else, go on.
 // 7 = num days in a week
 if(currentTimeInDays - hotSyncTimeInDays >= 7)
 {
    // delete db
}

Kelly

"Richard.Johnstone" <[EMAIL PROTECTED]> wrote in message
news:53489@palm-dev-forum...
>
> What format is this in?
> I have looked at it and it doesn't seem to be anything. Is it in seconds
> from 1904 or whenever it is?
>
> -----Original Message-----
> From: Kelly J Perkins [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 19, 2001 10:05 AM
> To: Palm Developer Forum
> Subject: Re: Date Last Hotsynced
>
>
> Richard,
>
> Here you go! It is a hard to find function.
>
> UInt32 dateP;
>
> // grabbing the time of last successful hotsync
>  DlkGetSyncInfo(&dateP, NULL, NULL, NULL, NULL, NULL);
>
> Kelly Perkins
> Notions Systems
>
>
> "Richard.Johnstone" <[EMAIL PROTECTED]> wrote in message
> news:53479@palm-dev-forum...
> >
> > I assume this is stored on the palm somewhere.
> > Does anyone know which function I call to get it??
> >
> > ta
> >
> >
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
>
>



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

Reply via email to