From dde83349da01f4b2d6a2e4182fc7a3cc627745f6 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 26 Feb 2021 17:30:12 +0100 Subject: Add libsimple_[e[n]]{local,gm}time, remove dates from man pages, and add blank lines between sections in man pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- enlocaltime.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 enlocaltime.c (limited to 'enlocaltime.c') diff --git a/enlocaltime.c b/enlocaltime.c new file mode 100644 index 0000000..aa94869 --- /dev/null +++ b/enlocaltime.c @@ -0,0 +1,23 @@ +/* See LICENSE file for copyright and license details. */ +#include "libsimple.h" +#ifndef TEST + + +void +libsimple_enlocaltime(int status, struct tm *tm, struct timespec *ts) +{ + if (libsimple_localtime(tm, ts)) + enprintf(status, "libsimple_localtime:"); +} + + +#else +#include "test.h" + +int +main(void) +{ + /* TODO test */ +} + +#endif -- cgit v1.2.3-70-g09d2 From ad12ec282c23d8751a72ba4c678cef4d902eb4bc Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 26 Feb 2021 17:54:31 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- engmtime.c | 1 + enlocaltime.c | 1 + gmtime.c | 1 + localtime.c | 1 + 4 files changed, 4 insertions(+) (limited to 'enlocaltime.c') diff --git a/engmtime.c b/engmtime.c index c2bf6bf..55e6c9c 100644 --- a/engmtime.c +++ b/engmtime.c @@ -18,6 +18,7 @@ int main(void) { /* TODO test */ + return 0; } #endif diff --git a/enlocaltime.c b/enlocaltime.c index aa94869..af8907e 100644 --- a/enlocaltime.c +++ b/enlocaltime.c @@ -18,6 +18,7 @@ int main(void) { /* TODO test */ + return 0; } #endif diff --git a/gmtime.c b/gmtime.c index 6b120b5..5868e8a 100644 --- a/gmtime.c +++ b/gmtime.c @@ -55,6 +55,7 @@ int main(void) { /* TODO test */ + return 0; } #endif diff --git a/localtime.c b/localtime.c index d695da7..0b075a0 100644 --- a/localtime.c +++ b/localtime.c @@ -55,6 +55,7 @@ int main(void) { /* TODO test */ + return 0; } #endif -- cgit v1.2.3-70-g09d2