summaryrefslogtreecommitdiffstats
path: root/library/clock.tcl
Commit message (Collapse)AuthorAgeFilesLines
* Change "clock format -format %x -locale current" output on msgcat locale ↵oehhar2015-10-211-0/+36
| | | | change [4a0c163d24]
* "mcpackagelocale present" is more elegantoehhar2015-06-301-1/+1
|
* [TIP 412] msgcat dynamic locale change and package private locale (msgcat 1.6.0)oehhar2015-06-291-98/+36
|\
| * clock.tcl modified that all clock tests passoehhar2015-05-311-12/+5
| |
| * merge trunkoehhar2015-05-311-601/+493
| |\ | |/ |/|
| * clock uses new msgcat featuresoehhar2012-09-201-575/+628
| |
* | [f0f876c141] Improve consistency in error messages.dkf2014-06-171-4/+4
| |
* | Never guess non-existing timezone name "America/Brasilia" on Windows. ↵jan.nijtmans2013-08-111-1/+1
|\ \ | | | | | | | | | Reported by Arnulf Wiedemann
| * | Never guess non-existing timezone name "America/Brasilia" on Windows. ↵jan.nijtmans2013-08-111-1/+1
| | | | | | | | | | | | Reported by Arnulf Wiedemann
* | | Fix [34538ba43f]jan.nijtmans2013-06-271-1/+1
|\ \ \ | |/ / | | / | |/ |/|
| * Fix [34538ba43f]jan.nijtmans2013-06-271-1/+1
| |
* | Fix loading of timezones where one abbreviation is a proper suffix of ↵Kevin B Kenny2012-01-081-3/+5
|\ \ | |/ | | | | another [Bug 3470928]
| * Fix loading of timezones where one abbreviation is a proper suffix of ↵Kevin B Kenny2012-01-081-3/+5
| | | | | | | | another [Bug 3470928]
| * Don't cache the system timezone when it was derived from TCL_TZ or TZ.max2011-10-181-11/+16
| |
* | Don't cache the system timezone when it was derived from TCL_TZ or TZ.max2011-10-181-11/+16
| |
* | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ | |/ | | cause more harm than good. Purged them (except in zlib files).
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| | | | | | more harm than good. Purged them.
| * * library/clock.tcl (LocalizeFormat):Kevin B Kenny2009-10-291-19/+22
| | | | | | | | | | | | * tests/clock.test (clock-67.1): Corrected a problem where '%%' followed by a letter in a format group could expand recursively: %%R would turn into %%H:%M:%S. [Bug 2819334]
| * * library/clock.tcl (ParseClockScanFormat):Kevin B Kenny2009-10-271-11/+15
| | | | | | | | | | | | | | | | Corrected a problem where [clock scan] didn't load the timezone soon enough when processing a time format that lacked a complete date. [Bug 2886852] * tests/clock.test (clock-66.1): Added a test case for the above bug.
| * * library/clock.tcl (ProcessPosixTimeZone):Kevin B Kenny2009-10-241-3/+11
| | | | | | | | | | | | | | | | | | | | | | Corrected a regression in the fix to [Bug 2207436] that caused [clock] to apply EU daylight saving time rules in the US. Thanks to Karl Lehenbauer for reporting this regression. * tests/clock.test (clock-52.4): Added a regression test for the above bug. * library/tzdata/Asia/Dhaka: * library/tzdata/Asia/Karachi: New DST rules for Bangladesh and Pakistan. (Olson's tzdata2009o.)
| * * generic/tclGetDate.y: Fixed a thread safety bug in the generatedKevin B Kenny2009-06-091-2/+2
| | | | | | | | | | | | | | | | | | | | * library/clock.tcl: Bison parser (needed a %pure-parser * tests/clock.test: declaration to avoid static variables). Discovered that the %pure-parser declaration allowed for returning the Bison error message to the Tcl caller in the event of a syntax error, so did so. * generic/tclDate.c: bison 2.3
| * * library/clock.tcl (tcl::clock::add): Fixed error message formattingKevin B Kenny2009-01-031-3/+3
| | | | | | | | | | | | in the case where [clock add] is presented with a bad switch. * tests/clock.test (clock-65.1) Added a test case for the above problem [Bug 2481670].
| * Fix time change in Eastern Europe (not 3:00 but 4:00 local time)nijtmans2008-12-121-3/+3
| | | | | | | | [Bug 2207436]
| * Fallback to European time zone DST rules, when the timezone isnijtmans2008-12-111-7/+26
| | | | | | | | between 0 and -12 [Bug 2207436].
| * * library/clock.tcl (format, ParseClockScanFormat): Added aKevin B Kenny2008-11-301-3/+5
| | | | | | | | | | | | | | [string map] to get rid of namespace delimiters before caching a scan or format procedure [Bug 2362156]. * tests/clock.test (clock-64.[12]): Added test cases for the bug that was tickled by a namespace delimiter inside a format string.
| * fix typo: s/ZoneinfoFile/LoadZoneinfoFile/das2008-11-011-2/+2
| |
* | Corrected case of trap patterndkf2010-02-091-2/+2
| |
* | Undo Jan's needless vandalism.dkf2009-11-191-9/+11
| |
* | Eliminate "then" keywordnijtmans2009-11-181-78/+78
| |
* | * library/clock.tcl (LocalizeFormat):Kevin B Kenny2009-10-291-16/+20
| | | | | | | | | | | | * tests/clock.test (clock-67.1): Corrected a problem where '%%' followed by a letter in a format group could expand recursively: %%R would turn into %%H:%M:%S. [Bug 2819334]
* | * library/clock.tcl (ParseClockScanFormat):Kevin B Kenny2009-10-271-11/+21
| | | | | | | | | | | | | | | | Corrected a problem where [clock scan] didn't load the timezone soon enough when processing a time format that lacked a complete date. [Bug 2886852] * tests/clock.test (clock-66.1): Added a test case for the above bug.
* | * library/clock.tcl (ProcessPosixTimeZone):Kevin B Kenny2009-10-241-3/+11
| | | | | | | | | | | | | | | | | | | | | | Corrected a regression in the fix to [Bug 2207436] that caused [clock] to apply EU daylight saving time rules in the US. Thanks to Karl Lehenbauer for reporting this regression. * tests/clock.test (clock-52.4): Added a regression test for the above bug. * library/tzdata/Asia/Dhaka: * library/tzdata/Asia/Karachi: New DST rules for Bangladesh and Pakistan. (Olson's tzdata2009o.)
* | Clarify code by using [try] instead of [catch] in a few placesdkf2009-07-241-557/+426
| |
* | * generic/tclGetDate.y: Fixed a thread safety bug in the generatedKevin B Kenny2009-06-091-2/+2
| | | | | | | | | | | | | | | | | | | | * library/clock.tcl: Bison parser (needed a %pure-parser * tests/clock.test: declaration to avoid static variables). Discovered that the %pure-parser declaration allowed for returning the Bison error message to the Tcl caller in the event of a syntax error, so did so. * generic/tclDate.c: bison 2.3
* | * library/clock.tcl (tcl::clock::add): Fixed error message formattingKevin B Kenny2009-01-031-3/+3
| | | | | | | | | | | | in the case where [clock add] is presented with a bad switch. * tests/clock.test (clock-65.1) Added a test case for the above problem [Bug 2481670].
* | Document new DST fallback rules.nijtmans2008-12-121-3/+3
| | | | | | | | | | Fix time change in Eastern Europe (not 3:00 but 4:00 local time) [Bug 2207436]
* | Fallback to European time zone DST rules, when the timezone isnijtmans2008-12-111-7/+26
| | | | | | | | between 0 and -12 [Bug 2207436].
* | * library/clock.tcl (format, ParseClockScanFormat): Added aKevin B Kenny2008-11-301-3/+5
| | | | | | | | | | | | | | [string map] to get rid of namespace delimiters before caching a scan or format procedure [Bug 2362156]. * tests/clock.test (clock-64.[12]): Added test cases for the bug that was tickled by a namespace delimiter inside a format string.
* | fix typo: s/ZoneinfoFile/LoadZoneinfoFile/das2008-11-011-2/+2
|/
* * doc/clock.n: Corrected minor indentation gaffe in theKevin B Kenny2008-02-271-7/+8
| | | | | | | | | | | | penultimate paragraph. [Bug 1898025] * generic/tclClock.c (ParseClockFormatArgs): Changed to check that the clock value is in the range of a 64-bit integer. [Bug 1862555] * library/clock.tcl (::tcl::clock::format, ::tcl::clock::scan, ::tcl::clock::add, ::tcl::clock::LocalizeFormat): Fixed bugs in caching of localized strings that caused weird results when localized date/time formats were used. [Bug 1902423] * tests/clock.test (clock-61.*, clock-62.1): Regression tests for [Bug 1862555] and [Bug 1902423].
* * generic/tclClock.c (ClockParseformatargsObjCmd):Kevin B Kenny2008-02-061-111/+51
| | | | | | | | | | * library/clock.tcl (::tcl::clock::format): * tests/clock.test (clock-1.0, clock-1.4): Performance enhancements in [clock format] (moving the analysis of $args into C code, holding on to Tcl_Objs with resolved command names, [lassign] in place of [foreach], avoiding [namespace which] for command resolution).
* merge stable branch onto HEADdgp2007-12-131-1/+1
|
* * library/clock.tcl (ParseClockScanFormat): Modified code to allowKevin B Kenny2007-08-251-19/+22
| | | | | * tests/clock.test (clock-60.*): case-insensitive matching of time zone and month names. [Bug 1781282]
* * doc/clock.n: Corrected a silly error (transposed 'uppercase'Kevin B Kenny2007-04-201-3/+2
| | | | | | | | | | | | | | | and 'lowercase' in clock.n. [Bug 1656002] Clarified that [clock scan] does not recognize a locale's alternative calendar. * library/clock.tcl: Corrected an error in skipping over the %Ey field on input. * library/msgs/ja.msg: * tools/loadICU.tcl: Corrected several localisation faults in the Japanese locale (most notably, incorrect dates for the Emperors' eras). [Bug 1637471]. Many thanks to SourceForge user 'nyademo' for pointing this out and developing a fix. * generic/tclPathObj.c: Corrected a 'const'ness fault that caused bitter complaints from MSVC.
* * library/clock.tcl: Fixed the naming ofKevin B Kenny2007-04-171-4/+4
| | | | | | | ::tcl::clock::ReadZoneinfoFile because (yoicks!) it was in the global namespace. * doc/clock.n: Clarified the cases in which legacy time zone is recognized. [Bug 1656002]
* * generic/tclCompCmds.c: added a cast to silence a compilerKevin B Kenny2007-04-151-12/+13
| | | | | | | | error on VC2005. * library/clock.tcl: Restored unique-prefix matching of keywords on the [clock] command. [Bug 1690041] * tests/clock.test: Added rudimentary test cases for unique-prefix matching of keywords.
* * library/clock.tcl (ReadZoneinfoFile): Added Y2038 compliance toKevin B Kenny2007-03-091-5/+21
| | | | | | the code for version-2 'zoneinfo' files. * tests/clock.test (clock-56.3): Added a test case for Y2038 and 'zoneinfo'.
* * library/clock.tcl: Further tweaks to the Windows time zone tableKevin B Kenny2007-03-081-80/+114
| | | | | | | | | (restoring missing Mexican time zones). Added rudimentary handling of version-2 'zoneinfo' files. Update US DST rules so that zones such as 'EST5EDT' get the correct transition dates. * tests/clock.test: Added rudimentary test cases for 'zoneinfo' parsing. Adjusted several tests that depended on obsolete US DST transition rules.
* New US DST rules on Windows; Olson's tzdata2007cKevin B Kenny2007-03-071-10/+20
|
* Fix [Bug 1587618], eliminating the callObjc and callObjv fields from the Interpdkf2006-10-311-5/+5
| | | | structure.