diff --git a/doc/variables.xml b/doc/variables.xml
index 10b4abfb..f6001d2a 100644
--- a/doc/variables.xml
+++ b/doc/variables.xml
@@ -1113,10 +1113,11 @@
- Format time given in seconds. Format is a string
+ Format time given in seconds. This var only works when
+ the times_in_seconds configuration setting is on. Format is a string
that should start and end with a "-char. The "-chars are not
- part of the output, \w,\d,\h,\m,\s and \\ are replaced by
- weeks,days,hours,minutes,seconds and \. If you leave out a unit,
+ part of the output, \w,\d,\h,\m,\s,\(,\) and \\ are replaced by
+ weeks,days,hours,minutes,seconds,(,) and \. If you leave out a unit,
it's value will be expressed in the highest unite lower then the
one left out. Text between ()-chars will not be visible if a
replaced unit in this text is 0. If seconds is a decimal number
diff --git a/src/timeinfo.c b/src/timeinfo.c
index df0a2a27..1cb76281 100644
--- a/src/timeinfo.c
+++ b/src/timeinfo.c
@@ -229,7 +229,9 @@ void print_format_time(struct text_object *obj, char *p, unsigned int p_max_size
}
break;
case '\\':
- p[output_length] = '\\';
+ case '(':
+ case ')':
+ p[output_length] = *currentchar;
output_length++;
break;
default: