dlpreadsysdatetime(3)
NAME
- DlpGetSysDateTime, DlpSetSysDateTime - read and write
- date/time to/from a PalmOS device
LIBRARY
libpconn
SYNOPSIS
#include <palm.h> #include <pconn/pconn.h> int DlpGetSysDateTime(PConnection *pconn, struct dlp_time *ptime); int DlpSetSysDateTime(PConnection *pconn, const struct dlp_time *ptime);
DESCRIPTION
- 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 suc
- cessful, or a negative value in case of error.
SEE ALSO
- libpconn(3), new_PConnection(3).
- BSD Aug 16, 2001