diff options
author | dgp <dgp@users.sourceforge.net> | 2012-11-15 05:12:38 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2012-11-15 05:12:38 (GMT) |
commit | 05b1764f74b5b1eb40ac16bdb0349de9f47587a5 (patch) | |
tree | 97c0791362b57f112ffa470f4333c5a9d920631e /doc/scan.n | |
parent | bff7817ec08bd66d55833181a0ed4850561e3d94 (diff) | |
download | tcl-05b1764f74b5b1eb40ac16bdb0349de9f47587a5.zip tcl-05b1764f74b5b1eb40ac16bdb0349de9f47587a5.tar.gz tcl-05b1764f74b5b1eb40ac16bdb0349de9f47587a5.tar.bz2 |
Octal death documentation impacts.
Diffstat (limited to 'doc/scan.n')
-rw-r--r-- | doc/scan.n | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -226,12 +226,10 @@ set string "#08D03F" \fBscan\fR $string "#%2x%2x%2x" r g b .CE .PP -Parse a \fIHH:MM\fR time string, noting that this avoids problems with -octal numbers by forcing interpretation as decimals (if we did not -care, we would use the \fB%i\fR conversion instead): +Parse a \fIHH:MM\fR time string: .PP .CS -set string "08:08" ;# *Not* octal! +set string "08:08" if {[\fBscan\fR $string "%d:%d" hours minutes] != 2} { error "not a valid time string" } |