diff options
author | dgp <dgp@users.sourceforge.net> | 2017-10-23 16:20:18 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2017-10-23 16:20:18 (GMT) |
commit | 172896b15a2b5b8a1163c9de824e20297a876ed5 (patch) | |
tree | 6074d964f252d4293d75e502e72d89b131206e3e /doc/scan.n | |
parent | e9b584f81b87c299c819443f22bc5a81b20fff38 (diff) | |
download | tcl-172896b15a2b5b8a1163c9de824e20297a876ed5.zip tcl-172896b15a2b5b8a1163c9de824e20297a876ed5.tar.gz tcl-172896b15a2b5b8a1163c9de824e20297a876ed5.tar.bz2 |
Implementation branch for TIP 114 - Eliminate Octal Parsing...
Diffstat (limited to 'doc/scan.n')
-rw-r--r-- | doc/scan.n | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -224,12 +224,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" } |