Zephyr API Documentation 4.2.0-rc3
A Scalable Open Source RTOS
 4.2.0-rc3
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

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)

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)