summaryrefslogtreecommitdiffstats
path: root/tests-perf
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2017-01-10 22:40:16 (GMT)
committersebres <sebres@users.sourceforge.net>2017-01-10 22:40:16 (GMT)
commitbc93c0f3ab88c29a0985e463ccd73fafaddddbc9 (patch)
treecca855feaafbb0568d92cc2b06cb9d8116e194c5 /tests-perf
parent61be8dc3b8493311781e3fec5575cb85161d16ab (diff)
downloadtcl-bc93c0f3ab88c29a0985e463ccd73fafaddddbc9.zip
tcl-bc93c0f3ab88c29a0985e463ccd73fafaddddbc9.tar.gz
tcl-bc93c0f3ab88c29a0985e463ccd73fafaddddbc9.tar.bz2
min length of %Y token (year with century) is 4, optional tokens possibility (zone), test cases extended
Diffstat (limited to 'tests-perf')
-rw-r--r--tests-perf/clock.perf.tcl7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests-perf/clock.perf.tcl b/tests-perf/clock.perf.tcl
index 3c69414..41cc9e1 100644
--- a/tests-perf/clock.perf.tcl
+++ b/tests-perf/clock.perf.tcl
@@ -150,6 +150,13 @@ proc test-scan {{reptime 1000}} {
# Scan : century, lookup table month and day (list scan: entries with position 12 / 31)
{clock scan {2016 Dec 31} -format {%C%y %b %Od} -locale en -gmt 1}
+ # Scan : ISO date-time (CEST)
+ {clock scan "2009-06-30T18:30:00+02:00" -format "%Y-%m-%dT%H:%M:%S%z"}
+ {clock scan "2009-06-30T18:30:00 CEST" -format "%Y-%m-%dT%H:%M:%S %z"}
+ # Scan : ISO date-time (UTC)
+ {clock scan "2009-06-30T18:30:00Z" -format "%Y-%m-%dT%H:%M:%S%z"}
+ {clock scan "2009-06-30T18:30:00 UTC" -format "%Y-%m-%dT%H:%M:%S %z"}
+
# Scan : dynamic format (cacheable)
{clock scan "25.11.2015 10:35:55" -format [string trim "%d.%m.%Y %H:%M:%S "] -base 0 -gmt 1}