diff options
| author | Thomas Ulmer <thomasmulmer02@gmail.com> | 2026-06-14 08:59:25 -0700 |
|---|---|---|
| committer | Thomas Ulmer <thomasmulmer02@gmail.com> | 2026-06-14 08:59:25 -0700 |
| commit | 3376b6420d3b6cc965890e46e7bbd06fbc9fd037 (patch) | |
| tree | 67b59ce0f9ba016db62067a081c0535d064d2a3f /src/slstatus/slstatus-1.1/components/datetime.c | |
| parent | d533343af750dcfda2321f33953b66396e767f10 (diff) | |
layout reorg
Diffstat (limited to 'src/slstatus/slstatus-1.1/components/datetime.c')
| -rw-r--r-- | src/slstatus/slstatus-1.1/components/datetime.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/slstatus/slstatus-1.1/components/datetime.c b/src/slstatus/slstatus-1.1/components/datetime.c deleted file mode 100644 index 5b10daf..0000000 --- a/src/slstatus/slstatus-1.1/components/datetime.c +++ /dev/null @@ -1,20 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include <stdio.h> -#include <time.h> - -#include "../slstatus.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; -} |
