Skip to contentSkip to conversation

tzset.3: add offset format

PATCH In review JWP 2 participants 2 messages Feb 14, 2015 – Feb 15, 2015 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore

JWP

author
#0 lore raw

PATCH 1/1 tzset.3: add offset format

tzset.3 does not illustrate the POSIX offset format. Specifically, there is no indication in the manual what the optional components of it are.

---
 man3/tzset.3 | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
man3/tzset.3 +6 -2
index 2bc246c..cfb2d4c 100644
@@ -107,8 +107,12 @@ time to get Coordinated Universal Time (UTC).
 The \fIoffset\fP is positive
 if the local timezone is west of the Prime Meridian and negative if it is
 east.
-The hour must be between 0 and 24, and the minutes and seconds
-0 and 59.
+The hour must be between 0 and 24, and the minutes and seconds 00 and 59:
+.sp
+.RS
+.RI [ + | - ] hh [ :mm [ :ss ]]
+.RE
+.sp
 .PP
 The \fIdst\fP string and \fIoffset\fP specify the name and offset for the
 corresponding daylight saving timezone.

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 3 lines · JWP

tzset.3 does not illustrate the POSIX offset format. Specifically, there is no indication in the manual what the optional components of it are.

Thanks for your continued input on the page, William. Patch applied.

Cheers,

Michael

Quoted 25 lines
---
 man3/tzset.3 | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
man3/tzset.3 +6 -2
index 2bc246c..cfb2d4c 100644
@@ -107,8 +107,12 @@ time to get Coordinated Universal Time (UTC).
 The \fIoffset\fP is positive
 if the local timezone is west of the Prime Meridian and negative if it is
 east.
-The hour must be between 0 and 24, and the minutes and seconds
-0 and 59.
+The hour must be between 0 and 24, and the minutes and seconds 00 and 59:
+.sp
+.RS
+.RI [ + | - ] hh [ :mm [ :ss ]]
+.RE
+.sp
 .PP
 The \fIdst\fP string and \fIoffset\fP specify the name and offset for the
 corresponding daylight saving timezone.
Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html