DlpGetSysDateTime(3)

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).

  1. 3.0–4.0

From coldsync 3.0+pre3-3 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.