summaryrefslogtreecommitdiff
path: root/src/basic/time-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-08-26 19:14:51 +0200
committerLennart Poettering <lennart@poettering.net>2015-08-26 20:36:42 +0200
commit5c904ba5a5f0953b568ae257b9667222d1d21808 (patch)
treedaf825083b3a98d781e916e1e1322926059e6487 /src/basic/time-util.h
parenta00458421dd4b6fcb9b4cdc433ba0c13970907f1 (diff)
time-util: add new get_timezone() call to get local timezone
Let's move the timedated-specific code to time-util.h and make it generic.
Diffstat (limited to 'src/basic/time-util.h')
-rw-r--r--src/basic/time-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/time-util.h b/src/basic/time-util.h
index 2aba042217..03a47f310d 100644
--- a/src/basic/time-util.h
+++ b/src/basic/time-util.h
@@ -110,3 +110,5 @@ bool timezone_is_valid(const char *name);
clockid_t clock_boottime_or_monotonic(void);
#define xstrftime(buf, fmt, tm) assert_se(strftime(buf, ELEMENTSOF(buf), fmt, tm) > 0)
+
+int get_timezone(char **timezone);