Skip to content

Commit

Permalink
Fix minor glitches in .txt output
Browse files Browse the repository at this point in the history
  • Loading branch information
eggert committed Jul 26, 2022
1 parent 83a2b91 commit e4374a9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
16 changes: 13 additions & 3 deletions tzselect.8
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ tzselect \- select a timezone
.SH SYNOPSIS
.ie \n(.g .ds - \f(CW-\fP
.el .ds - \-
.ds d " degrees
.ds m " minutes
.ds s " seconds
.ds _ " \"
.if t .if \n(.g .if c \(de .if c \(fm .if c \(sd \{\
. ds d \(de
. ds m \(fm
. ds s \(sd
. ds _ \|
.\}
.B tzselect
[
.B \*-c
Expand Down Expand Up @@ -57,11 +67,11 @@ seconds, with any trailing fractions represent fractional minutes or
is present) seconds. The decimal point is that of the current locale.
For example, in the (default) C locale,
.B "\*-c\ +40.689\*-074.045"
specifies 40.689\(de\|N, 74.045\(de\|W,
specifies 40.689\*d\*_N, 74.045\*d\*_W,
.B "\*-c\ +4041.4\*-07402.7"
specifies 40\(de\|41.4\(fm\|N, 74\(de\|2.7\(fm\|W, and
specifies 40\*d\*_41.4\*m\*_N, 74\*d\*_2.7\*m\*_W, and
.B "\*-c\ +404121\*-0740240"
specifies 40\(de\|41\(fm\|21\(sd\|N, 74\(de\|2\(fm\|40\(sd\|W.
specifies 40\*d\*_41\*m\*_21\*s\*_N, 74\*d\*_2\*m\*_40\*s\*_W.
If
.I coord
is not one of the documented forms, the resulting behavior is unspecified.
Expand Down
14 changes: 11 additions & 3 deletions zic.8
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ zic \- timezone compiler
. ds :
. ds - \-
.\}
.ds d " degrees
.ds m " minutes
.ds s " seconds
.ds _ " \"
.if t .if \n(.g .if c \(de .if c \(fm .if c \(sd \{\
. ds d \(de
. ds m \(fm
. ds s \(sd
. ds _ \|
.\}
The
.B zic
program reads text from the file(s) named on the command line
Expand Down Expand Up @@ -807,9 +817,7 @@ In this example, the timezone is named Europe/Zurich but it has an alias
as Europe/Vaduz. This example says that Zurich was 34 minutes and 8
seconds east of UT until 1853-07-16 at 00:00, when the legal offset
was changed to
.ds o 7 degrees 26 minutes 22.50 seconds
.if \n(.g .if c \(de .if c \(fm .if c \(sd .ds o 7\(de\|26\(fm\|22.50\(sd
\*o,
7\*d\*_26\*m\*_22.50\*s,
which works out to 0:29:45.50;
.B zic
treats this by rounding it to 0:29:46.
Expand Down

0 comments on commit e4374a9

Please sign in to comment.