summaryrefslogtreecommitdiffstats
path: root/generic/tclDate.c
Commit message (Collapse)AuthorAgeFilesLines
* * tests/clock.test (clock-8.1):hobbs2001-10-181-1/+18
| | | | | | | | | * generic/tclDate.c (RelativeMonth): * generic/tclGetDate.y (RelativeMonth): corrected off-by-one-day error in clock scan with relative months and years during swing hours. [Bug #413397, Patch #414024] (lavana) FossilOrigin-Name: 864f0ce0a969317ae5c96626cbd24f4d0a54e3c7
* Changes from TIP#17 "Redo Tcl's filesystem"vincentdarley2001-07-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following files were impacted. * doc/Access.3: * doc/FileSystem.3: * doc/OpenFileChnl.3: * doc/file.n: * doc/glob.n: * generic/tcl.decls: * generic/tcl.h: * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclDate.c: * generic/tclDecls.h: * generic/tclEncoding.c: * generic/tclFCmd.c: * generic/tclFileName.c: * generic/tclGetDate.y: * generic/tclIO.c: * generic/tclIOCmd.c: * generic/tclIOUtil.c: * generic/tclInt.decls: * generic/tclInt.h: * generic/tclIntDecls.h: * generic/tclLoad.c: * generic/tclStubInit.c: * generic/tclTest.c: * generic/tclUtil.c: * library/init.tcl: * mac/tclMacFCmd.c: * mac/tclMacFile.c: * mac/tclMacInit.c: * mac/tclMacPort.h: * mac/tclMacResource.c: * mac/tclMacTime.c: * tests/cmdAH.test: * tests/event.test: * tests/fCmd.test: * tests/fileName.test: * tests/io.test: * tests/ioCmd.test: * tests/proc-old.test: * tests/registry.test: * tests/unixFCmd.test: * tests/winDde.test: * tests/winFCmd.test: * unix/mkLinks: * unix/tclUnixFCmd.c: * unix/tclUnixFile.c: * unix/tclUnixInit.c: * unix/tclUnixPipe.c: * win/tclWinFCmd.c: * win/tclWinFile.c: * win/tclWinInit.c: * win/tclWinPipe.c FossilOrigin-Name: 9461aca54800a289624dfe39d333e41e20168ac3
* * tests/clock.test: Added test for "2 days 2 hours ago" styleericm2000-05-181-68/+71
| | | | | | | | | | | | specifications. * generic/tclDate.c: Regenerated from tclGetDate.y. * generic/tclGetDate.y: Tweaked grammar to properly handle the "ago" keyword when it follows multiple relative unit specifiers, as in "2 days 2 hours ago". [Bug: 5497]. FossilOrigin-Name: 5dc84a282db38c053d933f92b1fb49bcdd821ab6
* * tests/clock.test: Added test for ISO bases < 100000ericm2000-02-281-2/+6
| | | | | | | | | * 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
* * tests/clock.test: Added tests for "next monthname" constructs.ericm2000-02-091-101/+155
| | | | | | | | | * generic/tclDate.c: * generic/tclGetDate.y (Message): Added a grammar rule for "next monthname" so that we can handle "next january" and similar constructs (bug #4146). FossilOrigin-Name: 21f3edaefcbe19141cead64c26aeb662248fd1dd
* * unix/tclUnixTime.c: New clock format format.ericm2000-01-141-119/+140
| | | | | | | | * compat/strftime.c: New clock format format. * generic/tclGetDate.y: New clock scan format. FossilOrigin-Name: 53023d030d3ce288ed929ac8fad6c03646e458c3
* * tests/clock.test: Added tests for "next <day-of-week>" andericm2000-01-121-69/+91
| | | | | | "<day-of-week>" FossilOrigin-Name: 927e25a961366cf30f4722dabf6417dc391213c9
* * doc/tests/clock.test: Added numerous tests for clock scan.ericm2000-01-121-123/+87
| | | | | | | | | | | * doc/generic/tclGetDate.y: Fixed some shift/reduce conflicts in clock grammar. * doc/doc/clock.n: Added documentation for new supported clock scan formats and additional explanation of daylight savings time correction algorithm. FossilOrigin-Name: 5b25723b45f0f63cd286ac8b8ae52a2714f4cf8b
* * generic/tclGetDate.y: Added comments for the Convert function.ericm2000-01-121-684/+973
| | | | | | | | | Added a fix for daylight savings time handling for relative time spans of days, weeks or fortnights. * generic/tclDate.c: Fixed compiler warning issues. FossilOrigin-Name: 69adbd6db87fd94c07fe31c890fca5ec1afb62f7
* * generic/tclGetDate.y: Added comments for the Convert function.ericm2000-01-121-5/+36
| | | | | | * generic/tclDate.c: Fixed compiler warning issues. FossilOrigin-Name: 286cd58368d4b9c1b47373223f2e8d72c88b2220
* fixed "next" constant to give 1 unit ahead, not 2.ericm2000-01-111-2/+2
| | | FossilOrigin-Name: 1438d1edd07d9cb71460f07975be12ab4041cde1
* yacc runericm2000-01-111-2/+1
| | | FossilOrigin-Name: 70e29604ff30aa6841451b80fd4dea6a39e630e5
* *** empty log message ***ericm2000-01-111-860/+682
| | | FossilOrigin-Name: 4ae9f19e4fc5afb9f18b5381a229b3bb3b85e008
* * generic/tclDate.c:hobbs1999-12-081-11/+11
| | | | | | | | | | | | | | * unix/Makefile.in: fixed make gendate to swap const with CONST so it uses the Tcl defined CONST type [Bug: 3521] * generic/tclIO.c: removed panic that could occur in FlushChannel when a "blocking" channel would receive EAGAIN, instead treating it the same as non-blocking. [Bug: 3773] * generic/tclUtil.c: fixed Tcl_ScanCountedElement to not step beyond the end of the counted string [Bug: 3336] FossilOrigin-Name: b39a92cac1dd381b762fa8e78a40042bb2ea77c3
* 1999-09-16 Jeff Hobbs <hobbs@scriptics.com>hobbs1999-09-211-37/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/timer.test: changed after delay in timer test 6.29 from 1 to 10. [Bug: 2796] * tests/pkg.test: * generic/tclPkg.c: fixed package version check to disallow 1.2..3 [Bug: 2539] * unix/Makefile.in: fixed gendate target - this never worked since RCS was intro'd. * generic/tclGetDate.y: updated to reflect previous changes to tclDate.c (leap year calc) and added CEST and UCT time zone recognition. Fixed 4 missing UCHAR() casts. [Bug: 2717, 954, 1245, 1249] * generic/tclCkalloc.c: changed Tcl_DumpActiveMemory to really dump to stderr and close it [Bug: 725] and changed Tcl_Ckrealloc and Tcl_Ckfree to not bomb when NULL was passed in [Bug: 1719] and changed Tcl_Alloc, et al to not panic when a alloc request for zero came through and NULL was returned (valid on AIX, Tru64) [Bug: 2795, etc] * tests/clock.test: * doc/clock.n: * generic/tclClock.c: added -milliseconds switch to clock clicks to guarantee that the return value of clicks is in the millisecs granularity [Bug: 2682, 1332] 1999-09-15 Jeff Hobbs <hobbs@scriptics.com> * generic/tclIOCmd.c: fixed potential core dump in conjunction with stacked channels with result obj manipulation in Tcl_ReadChars [Bug: 2623] * tests/format.test: * generic/tclCmdAH.c: fixed translation of %0#s in format [Bug: 2605] * doc/msgcat.n: fixed \\ bug in example [Bug: 2548] * unix/tcl.m4: * unix/aclocal.m4: added fix for FreeBSD-[1-2] recognition [Bug: 2070] and fix for IRIX SHLIB_LB_LIBS. [Bug: 2610] * doc/array.n: * tests/var.test: * tests/set.test: * generic/tclVar.c: added an array unset operation, with docs and tests. Variation of [Bug: 1775]. Added fix in TclArraySet to check when trying to set in a non-existent namespace. [Bug: 2613] 1999-09-14 Jeff Hobbs <hobbs@scriptics.com> * tests/linsert.test: * doc/linsert.n: * generic/tclCmdIL.c: fixed end-int interpretation of linsert to correctly calculate value for end, added test and docs [Bug: 2693] * doc/regexp.n: * doc/regsub.n: * tests/regexp.test: * generic/tclCmdMZ.c: add -start switch to regexp and regsub with docs and tests * doc/switch.n: added proper use of comments to example. * generic/tclCmdMZ.c: changed switch to complain when an error occurs that seems to be due to a misplaced comment. * generic/tclCmdMZ.c: fixed illegal ref for \[0-9] substitutions in regsub [Bug: 2723] * generic/tclCmdMZ.c: changed [string equal] to return an Int type object (was a Boolean) FossilOrigin-Name: eb68adcdfd2b621fe83410354568df693c95a1fc
* merged 1-3-b2 changes into mainlinestanton1999-05-141-3/+5
| | | FossilOrigin-Name: 3ee5ce82d58788d2349d6468e4ba31b310e15306
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-12/+12
| | | FossilOrigin-Name: f3b32fb71c9011ac220779bd9dbe5617c9dc87d9
* Merged stubs changes into mainline for 8.0stanton1999-03-101-7/+7
| | | FossilOrigin-Name: 19696933517612024e7dbcfee6e3c8d3b4e41772
* Replaced SCCS strings, fixed binary filescore-8-0-3stanton1998-09-141-1/+1
| | | FossilOrigin-Name: 196f92fd17305db5fec1acd59f6926de11e01624
* Initial revisionrjohnson1998-03-261-0/+1638
FossilOrigin-Name: cacdd0f329872d67973970d74c6978730bc24baa