|
myMPD
Internal API documentation
|
Date and time functions. More...
#include <time.h>

Go to the source code of this file.
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 |