summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixTime.c
Commit message (Collapse)AuthorAgeFilesLines
* ANSIfydkf2005-11-021-43/+44
| | | FossilOrigin-Name: 19a0a6a899f2e83e5c3001676d0900edd861fee2
* Getting more systematic about styledkf2005-07-201-180/+190
| | | FossilOrigin-Name: 0c5cea4d810d972d3fc068b559c281718525451f
* Merged kennykb-numerics-branch back to the head; TIPs 132 and 232kennykb2005-05-101-1/+1
| | | FossilOrigin-Name: 1cc2336920c70c6b9f7825b88dec87fc223f2c4e
* * generic/tclStubInit.c: Regenerated the stubs support code fromandreas_kupries2005-01-211-16/+148
| | | | | | | | | | | | | | | | * generic/tclDecls.h: the modified tcl.decls (TIP #233, see below). * doc/GetTime.3: Implemented TIP #233, i.e. the * generic/tcl.decls: 'Virtualization of Tcl's Sense of Time'. * generic/tcl.h: Declared, implemented, and documented the * generic/tclInt.h: specified new API functions. Moved the * unix/tclUnixEvent.c: native (OS) access to time information * unix/tclUnixNotfy.c: into standard handler functions. Inserted * unix/tclUnixTime.c: hooks calling on the handlers where native * win/tclWinNotify.c: access was done before, and where scaling * win/tclWinTime.c: between domains (real/virtual) is required. FossilOrigin-Name: 8e9949daa235dc47ab939c371f97bf348bbe486a
* many more TIP 173 changeskennykb2004-09-271-56/+1
| | | FossilOrigin-Name: e64761cd12de4d157037d35fed3c2419b268fd98
* 2004-05-14 Kevin B. Kenny <kennykb@acm.org> kennykb2004-05-141-89/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.decls: Promoted TclpLocaltime and TclpGmtime * generic/tclIntDecls.h: from Unix-specific stubs to the generic * generic/tclIntPlatDecls.h: internal Stubs table. Reran 'genstubs' * generic/tclStubInit.c: * unix/tclUnixPort.h: * generic/tclClock.c: Changed a buggy 'GMT' timezone specification to the correct 'GMT0'. [Bug #922848] * unix/tclUnixThrd.c: Moved TclpGmtime and TclpLocaltime to unix/tclUnixTime.c where they belong. * unix/tclUnixTime.c (TclpGmtime, TclpLocaltime, TclpGetTimeZone, ThreadSafeGMTime [removed], ThreadSafeLocalTime [removed], SetTZIfNecessary, CleanupMemory): Restructured to make sure that the same mutex protects all calls to localtime, gmtime, and tzset. Added a check in front of those calls to make sure that the TZ env var hasn't changed since the last call to tzset, and repeat tzset if necessary. [Bug #942078] Removed a buggy test of the Daylight Saving Time information in 'gettimeofday' in favor of applying 'localtime' to a known value. [Bug #922848] * tests/clock.test (clock-3.14): Added test to make sure that changes to $env(TZ) take effect immediately. * win/tclWinTime.c (TclpLocaltime, TclpGmtime): Added porting layer for 'localtime' and 'gmtime' calls. FossilOrigin-Name: 44753d7a62927a3ae318a223fb94a8f35b69bf08
* Patch 922727 committed. Implements three changes:dgp2004-04-061-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.h: Reworked the Tcl header files into a clean * unix/tclUnixPort.h: hierarchy where tcl.h < tclPort.h < tclInt.h * win/tclWinInt.h: and every C source file should #include * win/tclWinPort.h: at most one of those files to satisfy its declaration needs. tclWinInt.h and tclWinPort.h also better organized so that tclWinPort.h includes the Windows implementation of cross-platform declarations, while tclWinInt.h makes declarations that are available on Windows only. * generic/tclBinary.c (TCL_NO_MATH): Deleted the generic/tclMath.h * generic/tclMath.h (removed): header file. The internal Tcl * macosx/Makefile (PRIVATE_HEADERS): header, tclInt.h, has a * win/tcl.dsp: #include <math.h> directly, and file external to Tcl needing libm should do the same. * win/Makefile.in (WIN_OBJS): Deleted the win/tclWinMtherr.c file. * win/makefile.bc (TCLOBJS): It's a vestige from matherr() days * win/makefile.vc (TCLOBJS): gone by. * win/tcl.dsp: * win/tclWinMtherr.c (removed): FossilOrigin-Name: 2e5b18c85c944b46540edfdd6580648e32645e2b
* * generic/tclIntDecls.h: Removed TclpTime_t. It wasn't really needed,rmax2004-03-181-6/+4
| | | | | | | | | | | | * generic/tclInt.h: but caused warnings related to * generic/tclInt.decls: strict aliasing with GCC 3.3. * generic/tclClock.c: * generic/tclDate.c: * generic/tclGetDate.y: * win/tclWinTime.c: * unix/tclUnixTime.c: FossilOrigin-Name: dab531a3378da8f028d4ca3a8657de7766acbf37
* Corrected a bug in conversion of non-ASCII chars in the format string.kennykb2003-05-191-3/+7
| | | FossilOrigin-Name: 38ad3535965c32f2b7ef31c6a0c3c06a04aeed09
* * unix/tclUnixTime.c: fixed typo.das2003-05-191-2/+2
| | | FossilOrigin-Name: 9236a51311fb24df6b7f57725756be6c32e346a4
* * compat/strftime.c: Modified TclpStrftime to return its kennykb2003-05-181-10/+23
| | | | | | | | | | * generic/tclClock.c: result in UTF-8 encoding, and removed * mac/tclMacTime.c: the conversion from system encoding to * unix/tclUnixTime.c: UTF-8 from [clock format]. Needed to * win/tclWinTime.c: avoid double conversion of the timezone name on Windows systems. [Bug 624408] FossilOrigin-Name: 24ccf14ddd003100f1665ad07f1dd558714cbd81
* Global symbols are now all either prefixed with 'tcl' (or 'Tcl' or ...) or ↵dkf2002-07-191-21/+17
| | | | | have file-scope. FossilOrigin-Name: 86e27ff753182370088914b09b67faefe53a8d37
* * unix/tclUnixTime.c: Make [clock format] respect locale settings.rmax2002-06-261-1/+3
| | | | | | * tests/clock.test: Bug #565880. ***POTENTIAL INCOMPATIBILITY*** FossilOrigin-Name: a6557623af609d16fa3e67720e438316fa52e6a4
* * tests/clock.test: added clock-9.1hobbs2002-05-291-3/+5
| | | | | | | | | | | | | | * compat/strftime.c: * generic/tclClock.c: * generic/tclInt.decls: * generic/tclIntDecls.h: * unix/tclUnixTime.c: fix for Windows msvcrt mem leak caused by using an env(TZ) setting trick for in clock format -gmt 1. This also makes %s seem to work correctly with -gmt 1 as well as making it a lot faster by avoid the env(TZ) hack. TclpStrftime now takes useGMT as an arg. [Bug #559376] FossilOrigin-Name: 4d47e1cec7caf94d2cdda340e5467982b96c322b
* added TIP#73 patch #483500 from Kevin Kenny.hobbs2001-11-211-3/+3
| | | | | | This deprecates TclpGetTime in favor of new Tcl_GetTime. FossilOrigin-Name: ad0e26f63b8c18f13f7c0131933099e11df86010
* Altered tclUnixTime.c in hopes of better K&R compatibility.kennykb2001-04-101-3/+5
| | | FossilOrigin-Name: e984e525c236caeca8368879863adbfdfb1ca431
* Oops. Committed the wrong copy of the source with the last commit fivekennykb2001-04-101-3/+3
| | | | | | minutes ago. FossilOrigin-Name: b6db3ba81ccb81ec35536d9b0716163ef9a1b520
* Fixed silly typo in calls to 'gmtime' and 'localtime'.kennykb2001-04-101-3/+3
| | | FossilOrigin-Name: 436fdc174bef6e4cfd4f9166ccf7ad938f959342
* Changes to support re-entrant coding of gmtime and localtime.kennykb2001-04-091-6/+112
| | | | | | (Bugs #219136 and #232558) FossilOrigin-Name: 4962ea9dd5cafaaa32a364b7e40b8b37b4474319
* * unix/tclUnixTime.c: New clock format format.ericm2000-01-141-1/+12
| | | | | | | | * compat/strftime.c: New clock format format. * generic/tclGetDate.y: New clock scan format. FossilOrigin-Name: 53023d030d3ce288ed929ac8fad6c03646e458c3
* revert changes to TclpStrftime, not needed for internal functions.redman1999-07-221-3/+3
| | | FossilOrigin-Name: a4cee78edc3a5c4654cbf4fb76845626b0849c0e
* * doc/Utf.3:redman1999-07-221-3/+3
| | | | | | | | | | | | | | | * generic/tcl.decls: * generic/tclInt.decls: * generic/tclDecls.h: * generic/tclIntDecls.h: * generic/tclUtf.c: * compat/strftime.c: * unix/tclUnixTime.c: Changed function declarations in non-platform-specific APIs to use "unsigned long" instead of "size_t", which may not be defined on certain compilers (rather than include sys/types.h, which may not exist). FossilOrigin-Name: 22b143003b180eaed3b7f8c9bad28df440ef6071
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-6/+11
| | | FossilOrigin-Name: f3b32fb71c9011ac220779bd9dbe5617c9dc87d9
* Merged stubs changes into mainline for 8.0stanton1999-03-101-1/+59
| | | FossilOrigin-Name: 19696933517612024e7dbcfee6e3c8d3b4e41772
* Replaced SCCS strings, fixed binary filescore-8-0-3stanton1998-09-141-1/+1
| | | FossilOrigin-Name: 196f92fd17305db5fec1acd59f6926de11e01624
* Initial revisionrjohnson1998-03-261-0/+236
FossilOrigin-Name: f86c34e38d2a946e0ed196001fd756c57f90791a