1 /*
2  * Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef _PICO_UTIL_DATETIME_H
8 #define _PICO_UTIL_DATETIME_H
9 
10 #include "pico.h"
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 /** \file datetime.h
17  * \defgroup util_datetime datetime
18  * \brief Date/Time formatting
19  * \ingroup pico_util
20  */
21 
22 /*! \brief  Convert a datetime_t structure to a string
23  *  \ingroup util_datetime
24  *
25  * \param buf character buffer to accept generated string
26  * \param buf_size The size of the passed in buffer
27  * \param t The datetime to be converted.
28  */
29 void datetime_to_str(char *buf, uint buf_size, const datetime_t *t);
30 
31 #ifdef __cplusplus
32 }
33 #endif
34 #endif
35