Nut/OS  4.10.3
API Reference
time.h File Reference

Standard C time handling functions. More...

#include <compiler.h>
#include <sys/types.h>
Include dependency graph for time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _tm
 structure to store a date/time value. More...

Typedefs

typedef struct _tm tm
 Type definition for struct _tm.
typedef long time_t
 Serial date/time. Holds number of seconds after January 1st, 1970.

Functions

time_t time (time_t *timer)
 Get the system time.
int gmtime_r (CONST time_t *timer, tm *ptm)
 Convert a time value to a structure.
tmgmtime (CONST time_t *timer)
 Convert a time value to a structure.
int localtime_r (CONST time_t *timer, tm *ptm)
 Convert a time value and correct for the local time zone.
tmlocaltime (CONST time_t *timer)
 Convert a time value and correct for the local time zone.
int stime (time_t *timer)
 Set the system time.
time_t mktime (tm *timeptr)
 Convert the local time to a calendar value.
time_t _mkgmtime (tm *timeptr)

Variables

int _daylight
 Used to control daylight conversions.
long _timezone
 Defines your local timezone.
long _dstbias
 Difference between standard and daylight savings time in seconds.

Detailed Description

Standard C time handling functions.

Definition in file time.h.