diff options
author | Kevin B Kenny <kennykb@acm.org> | 2018-07-21 18:45:09 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2018-07-21 18:45:09 (GMT) |
commit | 814c867db47078736aae2dbe18cbc4191fe90aee (patch) | |
tree | 4102bffb71a16ed0457320228f6c6fdfb94157ab | |
parent | d00a212e82abf97d0bc54b040a3d0a153980d537 (diff) | |
download | tcl-814c867db47078736aae2dbe18cbc4191fe90aee.zip tcl-814c867db47078736aae2dbe18cbc4191fe90aee.tar.gz tcl-814c867db47078736aae2dbe18cbc4191fe90aee.tar.bz2 |
Add a note in the 'clock' man page about the interpretation of impossible values on [clock scan]
-rw-r--r-- | doc/clock.n | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/clock.n b/doc/clock.n index 889a5da..6efa722 100644 --- a/doc/clock.n +++ b/doc/clock.n @@ -453,6 +453,19 @@ If this situation occurs, the first occurrence of the time is chosen. (For this reason, it is wise to have the input string contain the time zone when converting local times. This caveat does not apply to UTC times.) +.PP +If the interpretation of the groups yields an impossible time because +a field is out of range, enough of that field's unit will be added to +or subtracted from the time to bring it in range. Thus, if attempting to +scan or format day 0 of the month, one day will be subtracted from day +1 of the month, yielding the last day of the previous month. +.PP +If the interpretation of the groups yields an impossible time because +a Daylight Saving Time change skips over that time, or an ambiguous +time because a Daylight Saving Time change skips back so that the clock +observes the given time twice, and no time zone specifier (\fB%z\fR +or \fB%Z\fR) is present in the format, the time is interpreted as +if the clock had not changed. .SH "FORMAT GROUPS" .PP The following format groups are recognized by the \fBclock scan\fR and |