KNX IoT
KNX IoT Point API stack implementation
oc_clock_util.h
Go to the documentation of this file.
1 /*
2 // Copyright (c) 2019 Intel Corporation
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 */
20 #ifndef OC_CLOCK_UTIL_H
21 #define OC_CLOCK_UTIL_H
22 
23 #include "oc_config.h"
24 #include <stddef.h>
25 
33 size_t oc_clock_time_rfc3339(char *out_buf, size_t out_buf_len);
34 
43 size_t oc_clock_encode_time_rfc3339(oc_clock_time_t time, char *out_buf,
44  size_t out_buf_len);
45 
53 oc_clock_time_t oc_clock_parse_time_rfc3339(const char *in_buf,
54  size_t in_buf_len);
55 
56 #endif /* OC_CLOCK_UTIL_H */
size_t oc_clock_time_rfc3339(char *out_buf, size_t out_buf_len)
retrieve time as rfc3339 time (e.g.
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
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