summaryrefslogtreecommitdiff
path: root/man/i3status.man
diff options
context:
space:
mode:
authorEmil Mikulic <emikulic@gmail.com>2013-01-14 00:18:38 +1100
committerMichael Stapelberg <michael@stapelberg.de>2013-02-10 17:18:32 +0100
commit2ebe1f37269e9bec23a3f0c2e6be956884c7ab92 (patch)
treef326c0affdec8f9d19167f26e8de4dd92380f187 /man/i3status.man
parent895cbad7a23cfac3b191c711fab052a74c04c0b2 (diff)
Add tztime module to support multiple different timezones.
Diffstat (limited to 'man/i3status.man')
-rw-r--r--man/i3status.man33
1 files changed, 29 insertions, 4 deletions
diff --git a/man/i3status.man b/man/i3status.man
index 3f7a924..d780363 100644
--- a/man/i3status.man
+++ b/man/i3status.man
@@ -56,7 +56,8 @@ order += "ethernet eth0"
order += "battery 0"
order += "cpu_temperature 0"
order += "load"
-order += "time"
+order += "tztime local"
+order += "tztime berlin"
wireless wlan0 {
format_up = "W: (%quality at %essid, %bitrate) %ip"
@@ -83,8 +84,13 @@ run_watch VPN {
pidfile = "/var/run/vpnc/pid"
}
-time {
- format = "%Y-%m-%d %H:%M:%S"
+tztime local {
+ format = "%Y-%m-%d %H:%M:%S"
+}
+
+tztime berlin {
+ format = "%Y-%m-%d %H:%M:%S %Z"
+ timezone = "Europe/Berlin"
}
load {
@@ -258,12 +264,31 @@ Gets the system load (number of processes waiting for CPU time in the last
=== Time
-Formats the current system time. See +strftime(3)+ for the format.
+Outputs the current time in the local timezone.
+To use a different timezone, you can set the TZ environment variable,
+or use the +tztime+ module.
+See +strftime(3)+ for details on the format string.
*Example order*: +time+
*Example format*: +%Y-%m-%d %H:%M:%S+
+=== TzTime
+
+Outputs the current time in the given timezone.
+If no timezone is given, local time will be used.
+See +strftime(3)+ for details on the format string.
+The system's timezone database is usually installed in +/usr/share/zoneinfo+.
+Files below that path make for valid timezone strings, e.g. for
++/usr/share/zoneinfo/Europe/Berlin+ you can set timezone to +Europe/Berlin+
+in the +tztime+ module.
+
+*Example order*: +tztime berlin+
+
+*Example format*: +%Y-%m-%d %H:%M:%S %Z+
+
+*Example timezone*: +Europe/Berlin+
+
=== DDate
Outputs the current discordian date in user-specified format. See +ddate(1)+ for