chiark / gitweb /
systemd-detect-virt: detect s390 virtualization
[elogind.git] / src / shared / time-util.h
index f68c09560562b6664f906a50409a102777202a5f..792cd2748936d1cb51ce0d5ef933959b7e56ea74 100644 (file)
@@ -58,6 +58,7 @@ typedef struct dual_timestamp {
 #define NSEC_PER_YEAR ((usec_t) (31557600ULL*NSEC_PER_SEC))
 
 #define FORMAT_TIMESTAMP_MAX ((4*4+1)+11+9+4+1) /* weekdays can be unicode */
+#define FORMAT_TIMESTAMP_WIDTH 28 /* when outputting, assume this width */
 #define FORMAT_TIMESTAMP_RELATIVE_MAX 256
 #define FORMAT_TIMESPAN_MAX 64
 
@@ -94,3 +95,6 @@ int parse_sec(const char *t, usec_t *usec);
 int parse_nsec(const char *t, nsec_t *nsec);
 
 bool ntp_synced(void);
+
+int get_timezones(char ***l);
+bool timezone_is_valid(const char *name);