diff options
Diffstat (limited to 'src/libstddjb/localtm_from_utc.c')
-rw-r--r-- | src/libstddjb/localtm_from_utc.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libstddjb/localtm_from_utc.c b/src/libstddjb/localtm_from_utc.c new file mode 100644 index 0000000..697621c --- /dev/null +++ b/src/libstddjb/localtm_from_utc.c @@ -0,0 +1,12 @@ +/* ISC license. */ + +#include <sys/types.h> +#include <time.h> +#include <skalibs/uint64.h> +#include <skalibs/djbtime.h> + +int localtm_from_utc (struct tm *l, uint64 u, int tz) +{ + if (!ltm64_from_utc(&u)) return 0 ; + return localtm_from_ltm64(l, u, tz) ; +} |