---
name: "njb_time_struct"
section: "3"
platform: "linux"
package: "libnjb-doc"
version: "2.2.5-4.3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/njb_time_struct"
---

# njb\_time\_struct(3)

## NAME

njb\_time\_struct -

## SYNOPSIS

`#include <libnjb.h>`

### Data Fields

int16\_t **year**\
 int16\_t **month**\
 int16\_t **day**\
 int16\_t **weekday**\
 int16\_t **hours**\
 int16\_t **minutes**\
 int16\_t **seconds**\

## Detailed Description

Time set/read struct

**Examples:**

**dumptime.c**, and **settime.c**.

## Field Documentation

### int16\_t njb\_time\_struct::day Day (0-31)

**Examples:**  **dumptime.c**, and **settime.c**.

Referenced by time\_pack(), time\_pack3(), time\_unpack(), and time\_unpack3().

### int16\_t njb\_time\_struct::hours Hours (24-hour notation)

**Examples:**  **dumptime.c**, and **settime.c**.

Referenced by time\_pack(), time\_pack3(), time\_unpack(), and time\_unpack3().

### int16\_t njb\_time\_struct::minutes Minutes

**Examples:**  **dumptime.c**, and **settime.c**.

Referenced by time\_pack(), time\_pack3(), time\_unpack(), and time\_unpack3().

### int16\_t njb\_time\_struct::month Month (0-11)

**Examples:**  **dumptime.c**, and **settime.c**.

Referenced by time\_pack(), time\_pack3(), time\_unpack(), and time\_unpack3().

### int16\_t njb\_time\_struct::seconds Seconds

**Examples:**  **dumptime.c**, and **settime.c**.

Referenced by time\_pack(), time\_pack3(), time\_unpack(), and time\_unpack3().

### int16\_t njb\_time\_struct::weekday Day of the week 0=sunday, 6=saturday

**Examples:**  **dumptime.c**, and **settime.c**.

Referenced by time\_pack(), time\_pack3(), time\_unpack(), and time\_unpack3().

### int16\_t njb\_time\_struct::year Year (4 digits)

**Examples:**  **dumptime.c**, and **settime.c**.

Referenced by time\_pack(), time\_pack3(), time\_unpack(), and time\_unpack3().

## Author

Generated automatically by Doxygen for libnjb from the source code.
