From 837f8b1f10fc94cd784f9c03ff469298822efd4c Mon Sep 17 00:00:00 2001 From: Will Song Date: Sat, 30 May 2015 00:42:19 -0500 Subject: [PATCH] add examples and be more specific about time formatting --- src/command/command.c | 11 ++++++++--- 1 file 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 : Change strftime format to in main window.", + "main set : Change time format to in main window.", "main off : Do not show time in main window.", - "statusbar set : Change strftime format to in statusbar.", + "statusbar set : Change time format to 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",