diff options
author | ericm <ericm@noemail.net> | 2000-02-28 18:49:41 (GMT) |
---|---|---|
committer | ericm <ericm@noemail.net> | 2000-02-28 18:49:41 (GMT) |
commit | 9a0d541ca86aa2dff1d0b5a89e0ebaa3a27f815f (patch) | |
tree | f803022cc88ec472d9771e6a7bb8f45259d814f3 /tests | |
parent | 01aa0076aa99ebc2e943110ad6d269f8e599133d (diff) | |
download | tcl-9a0d541ca86aa2dff1d0b5a89e0ebaa3a27f815f.zip tcl-9a0d541ca86aa2dff1d0b5a89e0ebaa3a27f815f.tar.gz tcl-9a0d541ca86aa2dff1d0b5a89e0ebaa3a27f815f.tar.bz2 |
* tests/clock.test: Added test for ISO bases < 100000
* generic/tclDate.c: (generated on Solaris)
* generic/tclGetDate.y: Changed condition for deciding if a number
is an ISO 8601 base from number >= 100000 to numberOfDigits >= 6.
Previously it would fail to recognize 000000 as an ISO base.
FossilOrigin-Name: 7f9ecc28cace61f690eaad6a39ed86f5b5b0d0d8
Diffstat (limited to 'tests')
-rw-r--r-- | tests/clock.test | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/clock.test b/tests/clock.test index e7c65b0..57e3921 100644 --- a/tests/clock.test +++ b/tests/clock.test @@ -10,7 +10,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: clock.test,v 1.10 2000/02/09 03:56:24 ericm Exp $ +# RCS: @(#) $Id: clock.test,v 1.11 2000/02/28 18:49:42 ericm Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -182,6 +182,10 @@ test clock-4.17 {clock scan, ISO 8601 point in time format} { set time [clock scan "19921023 235959"] clock format $time -format {%b %d, %Y %H:%M:%S} } "Oct 23, 1992 23:59:59" +test clock-4.18 {clock scan, ISO 8601 point in time format} { + set time [clock scan "19921023T000000"] + clock format $time -format {%b %d, %Y %H:%M:%S} +} "Oct 23, 1992 00:00:00" # CLOCK SCAN REAL TESTS test clock-4.18 {clock scan, number meridian} { |