summaryrefslogtreecommitdiffstats
path: root/include/timeutils.h
diff options
context:
space:
mode:
authorSami Kerola2016-06-19 22:43:40 +0200
committerSami Kerola2016-06-26 22:58:18 +0200
commitc1616946825e7f4ae9769e2846e9ad63a7ba369c (patch)
treee13a75af86ebbed9210c563a22fa55a3cc59b63d /include/timeutils.h
parentutmpdump: use always UTC-0 timezone in textual output (diff)
downloadkernel-qcow2-util-linux-c1616946825e7f4ae9769e2846e9ad63a7ba369c.tar.gz
kernel-qcow2-util-linux-c1616946825e7f4ae9769e2846e9ad63a7ba369c.tar.xz
kernel-qcow2-util-linux-c1616946825e7f4ae9769e2846e9ad63a7ba369c.zip
libcommon: add ISO_8601_GMTIME that will print UTC-0 timestamps
When timestamps are intented to be conversable back from string to binary it is best to stick with UTC-0 timezone. This is needed in utmpdump(1). Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'include/timeutils.h')
-rw-r--r--include/timeutils.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/timeutils.h b/include/timeutils.h
index 265577f5e..00d18200d 100644
--- a/include/timeutils.h
+++ b/include/timeutils.h
@@ -61,7 +61,8 @@ enum {
ISO_8601_DOTUSEC = (1 << 3),
ISO_8601_COMMAUSEC = (1 << 4),
ISO_8601_TIMEZONE = (1 << 5),
- ISO_8601_SPACE = (1 << 6)
+ ISO_8601_SPACE = (1 << 6),
+ ISO_8601_GMTIME = (1 << 7)
};
#define ISO_8601_BUFSIZ 32