diff options
author | ericm <ericm> | 2000-02-28 18:49:41 (GMT) |
---|---|---|
committer | ericm <ericm> | 2000-02-28 18:49:41 (GMT) |
commit | d1edd68524561d9f8c25de1d4a095eaf4a09f55a (patch) | |
tree | f803022cc88ec472d9771e6a7bb8f45259d814f3 /tests/clock.test | |
parent | e411cd157324b6c27b10548c0b50704a7cbf4b37 (diff) | |
download | tcl-d1edd68524561d9f8c25de1d4a095eaf4a09f55a.zip tcl-d1edd68524561d9f8c25de1d4a095eaf4a09f55a.tar.gz tcl-d1edd68524561d9f8c25de1d4a095eaf4a09f55a.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.
Diffstat (limited to 'tests/clock.test')
-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} { |