Zephyr Project API 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
time.h File Reference
#include <stdint.h>
#include <zephyr/toolchain.h>
#include <sys/_types.h>
#include <sys/_timespec.h>

Go to the source code of this file.

Data Structures

struct  tm
 

Typedefs

typedef _TIME_T_ time_t
 
typedef _SUSECONDS_T_ suseconds_t
 

Functions

struct tmgmtime (const time_t *timep)
 
struct tmgmtime_r (const time_t *ZRESTRICT timep, struct tm *ZRESTRICT result)
 
char * asctime (const struct tm *timeptr)
 
struct tmlocaltime (const time_t *timer)
 
char * ctime (const time_t *clock)
 
char * asctime_r (const struct tm *ZRESTRICT tp, char *ZRESTRICT buf)
 
char * ctime_r (const time_t *clock, char *buf)
 
struct tmlocaltime_r (const time_t *ZRESTRICT timer, struct tm *ZRESTRICT result)
 
time_t time (time_t *tloc)
 

Typedef Documentation

◆ suseconds_t

typedef _SUSECONDS_T_ suseconds_t

◆ time_t

typedef _TIME_T_ time_t

Function Documentation

◆ asctime()

char * asctime ( const struct tm timeptr)

◆ asctime_r()

char * asctime_r ( const struct tm *ZRESTRICT  tp,
char *ZRESTRICT  buf 
)

◆ ctime()

char * ctime ( const time_t clock)

◆ ctime_r()

char * ctime_r ( const time_t clock,
char *  buf 
)

◆ gmtime()

struct tm * gmtime ( const time_t timep)

◆ gmtime_r()

struct tm * gmtime_r ( const time_t *ZRESTRICT  timep,
struct tm *ZRESTRICT  result 
)

◆ localtime()

struct tm * localtime ( const time_t timer)

◆ localtime_r()

struct tm * localtime_r ( const time_t *ZRESTRICT  timer,
struct tm *ZRESTRICT  result 
)

◆ time()

time_t time ( time_t tloc)