about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorWill Song <incertia9474@gmail.com>2015-05-30 00:42:19 -0500
committerWill Song <incertia9474@gmail.com>2015-05-30 00:42:19 -0500
commit837f8b1f10fc94cd784f9c03ff469298822efd4c (patch)
treec42eb5c3147219e066d6d38f7b16bc52bc0dcd14 /src
parent83bed119e4c5a39bc9f76640187db94dffac23cb (diff)
downloadprofani-tty-837f8b1f10fc94cd784f9c03ff469298822efd4c.tar.gz
add examples and be more specific about time formatting
Diffstat (limited to 'src')
-rw-r--r--src/command/command.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 3fa467d4..4086278c 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -688,13 +688,18 @@ static struct cmd_t command_defs[] =
         cmd_time, parse_args, 1, 3, &cons_time_setting,
         { "/time main|statusbar set|off [format]", "Time display.",
         { "/time main|statusbar set|off [format]",
-          "---------------------------------",
+          "-------------------------------------",
           "Configure time display preferences.",
           "",
-          "main set <format>      : Change strftime format to <format> in main window.",
+          "main set <format>      : Change time format to <format> in main window.",
           "main off               : Do not show time in main window.",
-          "statusbar set <format> : Change strftime format to <format> in statusbar.",
+          "statusbar set <format> : Change time format to <format> in statusbar.",
           "statusbar off          : Do not show time in status bar.",
+          "",
+          "Time formats are strings supported by g_date_time_format.",
+          "See https://developer.gnome.org/glib/stable/glib-GDateTime.html#g-date-time-format for more details.",
+          "Example: /time main set %H:%M (main time will be set to HH:MM)",
+          "Example: /time statusbar set yolo (statusbar time will all be changed to a static yolo)",
           NULL } } },
 
     { "/inpblock",