Poster of Linux kernelThe best gift for a Linux geek
The time manipulation API

The time manipulation API

Section: libnjb (3) Updated: 6 Mar 2010
Local index Up
 

NAME

The time manipulation API -  

Functions


njb_time_t * NJB_Get_Time (njb_t *njb)

int NJB_Set_Time (njb_t *njb, njb_time_t *time)

void NJB_Destroy_Time (njb_time_t *time)
 

Function Documentation

 

void NJB_Destroy_Time (njb_time_t * time)This destroys a time stamp and frees up any memory used by it.

Parameters:

time the time stamp to destroy.

Examples: dumptime.c, and settime.c.  

njb_time_t* NJB_Get_Time (njb_t * njb)This returns the current time stamp for the device.

Parameters:

njb a pointer to the njb_t object to get the time from.

Returns:

a valid time stamp or NULL on failure.

Examples: dumptime.c, and settime.c.

References njb_struct::device_type, and NJB_DEVICE_NJB1.  

int NJB_Set_Time (njb_t * njb, njb_time_t * time)This sets the current time stamp for the device. (Sets the on-board clock.)

Parameters:

njb a pointer to the njb_t object to set the timestamp on.
time the new timestamp to use (time to set).

Returns:

0 on success, -1 on failure.

Examples: settime.c.

References njb_struct::device_type, NJB_DEVICE_NJB1, and njb_verify_last_command().  

Author

Generated automatically by Doxygen for libnjb from the source code.


 

Index

NAME
Functions
Function Documentation
void NJB_Destroy_Time (njb_time_t * time)This destroys a time stamp and frees up any memory used by it.
njb_time_t* NJB_Get_Time (njb_t * njb)This returns the current time stamp for the device.
int NJB_Set_Time (njb_t * njb, njb_time_t * time)This sets the current time stamp for the device. (Sets the on-board clock.)
Author

This document was created by man2html, using the manual pages.
Time: 21:51:25 GMT, April 16, 2011