DlpGetSysDateTime3
Read and write date/time to/from a palmos device
Usage
#include <palm.h>
#include <pconn/pconn.h>
int
DlpGetSysDateTime(PConnection *pconn, struct dlp_time *ptime);
int
DlpSetSysDateTime(PConnection *pconn, const struct dlp_time *ptime);
Library
libpconn
Overview
DlpGetSysDateTime() reads the date and time pconn and stores it in ptime. DlpSetSysDateTime() sets the date and time on the Palm. The dlp_time structure is defined as
struct dlp_time
{
uword year;
ubyte month;
ubyte day;
ubyte hour;
ubyte minute;
ubyte second;
};
Return value
DlpGetSysDateTime() and DlpSetSysDateTime() return 0 if successful, or a negative value in case of error.
Releases
Unchanged in 3 releases since Debian 3.0 (Woody).