KNX IoT
KNX IoT Point API stack implementation
oc_clock_util.h File Reference

rfc3339 timing conversions. More...

#include "oc_config.h"
#include <stddef.h>

Go to the source code of this file.

Functions

size_t oc_clock_encode_time_rfc3339 (oc_clock_time_t time, char *out_buf, size_t out_buf_len)
 encode time as rfc3339 time More...
 
oc_clock_time_t oc_clock_parse_time_rfc3339 (const char *in_buf, size_t in_buf_len)
 parse rfc3339 time into oc_clock format More...
 
size_t oc_clock_time_rfc3339 (char *out_buf, size_t out_buf_len)
 retrieve time as rfc3339 time (e.g. More...
 

Detailed Description

rfc3339 timing conversions.

Definition in file oc_clock_util.h.

Function Documentation

◆ oc_clock_encode_time_rfc3339()

size_t oc_clock_encode_time_rfc3339 ( oc_clock_time_t  time,
char *  out_buf,
size_t  out_buf_len 
)

encode time as rfc3339 time

Parameters
timethe time from the oc_clock
out_bufallocated buffer to store time in rfc3339 format
out_buf_lenthe allocated buffer size
Returns
size_t the used buffer size

◆ oc_clock_parse_time_rfc3339()

oc_clock_time_t oc_clock_parse_time_rfc3339 ( const char *  in_buf,
size_t  in_buf_len 
)

parse rfc3339 time into oc_clock format

Parameters
in_bufbuffer with rfc3339 time
in_buf_lenthe length of the buffer
Returns
oc_clock_time_t the clock time

◆ oc_clock_time_rfc3339()

size_t oc_clock_time_rfc3339 ( char *  out_buf,
size_t  out_buf_len 
)

retrieve time as rfc3339 time (e.g.

string)

Parameters
out_bufallocated buffer
out_buf_lenbuffer length of the allocated buffer
Returns
size_t used buffer size