|
myMPD
Internal API documentation
|
Date and time functions. More...
#include "compile_time.h"#include "src/lib/datetime.h"#include "src/lib/log.h"#include <string.h>
Functions | |
| time_t | parse_date (const char *str) |
| void | readable_time (char *buf, time_t timestamp) |
Date and time functions.
| time_t parse_date | ( | const char * | str | ) |
Parses a YYYY-MM-DD string to a unix timestamp
| str | string to parse |
| void readable_time | ( | char * | buf, |
| time_t | timestamp | ||
| ) |
Appends a formatted time to the buffer
| buf | already allocated sds string |
| timestamp | timestamp to display |