NJB_Get_Time(3)

NJB_Get_Time3

Get the local time on the njb

Usage

#include <libnjb.h>

extern int njb_error

njb_time_t *NJB_Get_Time(njb_t *njb);

Library

libnjb

Overview

This function retrieves the time of the internal clock that is fitted inside all jukeboxes. (Some jukeboxes does not announce the presence of a clock, or make it available in the menus of the firmware, but it is there in any case.)

The returned structure must be freed with the function free().

Time structure

The time structure has the following form:

typedef struct {
int16_t year;
int16_t month;
int16_t day;
int16_t weekday;
int16_t hours;
int16_t minutes;
int16_t seconds; } njb_time_t;

The values are quite self-explanatory. For the weekday setting, 0 is sunday and so forth. The hour setting is that of a 24 hour clock.

Releases

Unchanged in 2 releases since Debian 3.1 (Sarge).

  1. 3.1–4.0

From libnjb1-doc 1.1-2 in Debian 4.0 (Etch). Parsed by carta from the page's man source.