njb_get_time(3)

NAME

NJB_Get_Time - Get the local time on the NJB

LIBRARY

libnjb

SYNOPSIS

#include <libnjb.h>
extern int njb_error
njb_time_t *NJB_Get_Time(njb_t *njb);

DESCRIPTION

This function retrieves the time of the internal clock
that is fitted inside all jukeboxes. (Some jukeboxes does not an
nounce 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.

SEE ALSO

NJB_Set_Time(3)
January 2003
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout