---
name: "DlpGetSysDateTime"
section: "3"
platform: "linux"
package: "coldsync"
version: "3.0+pre3-3"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/DlpGetSysDateTime"
---

# DlpGetSysDateTime(3)

read and write date/time to/from a PalmOS device

## 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 successful, or a negative value in case of error.

## SEE ALSO

[libpconn(3)](/libpconn/3.md), [new\_PConnection(3)](/new_PConnection/3.md).
