diff options
Diffstat (limited to 'slstatus/components/datetime.c')
-rw-r--r-- | slstatus/components/datetime.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/slstatus/components/datetime.c b/slstatus/components/datetime.c deleted file mode 100644 index c3efae3..0000000 --- a/slstatus/components/datetime.c +++ /dev/null @@ -1,19 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include <stdio.h> -#include <time.h> - -#include "../util.h" - -const char * -datetime(const char *fmt) -{ - time_t t; - - t = time(NULL); - if (!strftime(buf, sizeof(buf), fmt, localtime(&t))) { - warn("strftime: Result string exceeds buffer size"); - return NULL; - } - - return buf; -} |