summaryrefslogtreecommitdiff
path: root/time
Commit message (Collapse)AuthorAgeFilesLines
* Improve matters on Win32 with time string formats.wrowe2002-01-291-1/+65
| | | | | | | Submitted by: John K. Sterling <sterling@covalent.net>CVS: ----------------------------------------------------------------------CVS: PR:CVS: If this change addresses a PR in the problem report trackingCVS: database, then enter the PR number(s) here.CVS: Obtained from:CVS: If this change has been taken from another system, such as NCSA,CVS: then name the system in this line, otherwise delete it.CVS: Submitted by:CVS: If this code has been contributed to Apache by someone else; i.e.,CVS: they sent us a patch or a new module, then include their name/emailCVS: address here. If this is your work then delete this line.CVS: Reviewed by:CVS: If we are doing pre-commit code reviews and someone else hasCVS: reviewed your changes, include their name(s) here.CVS: If you have not had it reviewed then delete this line.CVS: ---------------------------------------------------------------------- git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62853 13f79535-47bb-0310-9956-ffa450edef68
* Fix GMT offset calculations for platforms that do not have native GMTjerenkrantz2002-01-101-3/+4
| | | | | | | | | offsets. Submitted by: Jon Travis <jtravis@covalent.net> Reviewed by: Justin, Brian, David git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62744 13f79535-47bb-0310-9956-ffa450edef68
* Fixing up a linker issue since NetWare does not have a gettimeofday() functionbnicholes2002-01-021-6/+7
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62696 13f79535-47bb-0310-9956-ffa450edef68
* Added an initialization routine for NetWare and daylight savings handlingbnicholes2001-11-051-1/+18
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62490 13f79535-47bb-0310-9956-ffa450edef68
* Adjusted to deal with microsecondsbnicholes2001-11-021-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62486 13f79535-47bb-0310-9956-ffa450edef68
* Added the NetWare delay() call to apr_sleep()bnicholes2001-10-291-0/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62476 13f79535-47bb-0310-9956-ffa450edef68
* Allowed NetWare to take advantage of the system timezone variablebnicholes2001-10-091-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62410 13f79535-47bb-0310-9956-ffa450edef68
* include the prototype for apr_unix_setup_time() in the filetrawick2001-08-311-0/+3
| | | | | | | | that defines apr_unix_setup_time() to ensure consistency (and to eliminate a gcc warning to that effect) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62265 13f79535-47bb-0310-9956-ffa450edef68
* On platforms where neither HAVE_GMTOFF nor HAVE___OFFSET is defined,jerenkrantz2001-08-311-23/+52
| | | | | | | | | | | | | | | | | | | | | | | | like Solaris, the function "get_offset" in apr/time/unix/time.c is a bottleneck in time formatting. On these platforms, get_offset ignores its argument; it really computes the server's offset from GMT, normalized so that it's independent of daylight savings. Here's a new version of the get_offset patch that initializes the TZ offset from apr_initialize. I've attached the new include file that it uses, apr/include/arch/unix/internal_time.h -- Justin added the missing call to apr_initialize in testtime.c so that testtime works on Solaris and produces the "right" output. Submitted by: Brian Pane <bpane@pacbell.net> Reviewed by: Justin Erenkrantz, Roy Fielding git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62262 13f79535-47bb-0310-9956-ffa450edef68
* Wrap all APR functions in APR_DECLARE macro.rbb2001-08-101-17/+19
| | | | | | | Submitted by: Sterling Hughes <sterling@designmultimedia.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62139 13f79535-47bb-0310-9956-ffa450edef68
* Ported the apr_time_now() function to support the NetWare OSbnicholes2001-08-021-0/+7
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62087 13f79535-47bb-0310-9956-ffa450edef68
* Adjust the calculated GMT offset on get_offset() for daylight savings time.brane2001-07-011-2/+12
| | | | | | | | This only affects platforms that do not have a tm_gmtoff field in struct tm (e.g., Solaris 2.6, HP-UX 10.20, ...). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61843 13f79535-47bb-0310-9956-ffa450edef68
* Added new function apr_implode_gmt, which works like apr_implode_time, exceptbrane2001-06-302-0/+17
| | | | | | | | | | | that it always produces an apr_time_t that represents GMT. * include/apr_time.h (apr_implode_gmt): New function. * time/unix/time.c, time/win32/time.c: Implement it. * test/testtime.c: Test it. The test is analogous to the apr_implode_time test. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61832 13f79535-47bb-0310-9956-ffa450edef68
* fix some compile breakage (on HP-UX, at least)... testtime is happy ontrawick2001-06-291-8/+8
| | | | | | | HP-UX so hopefully the libc routines are called correctly git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61827 13f79535-47bb-0310-9956-ffa450edef68
* Update the time code to make it clearer what's going on and todreid2001-06-291-29/+35
| | | | | | | | | | | correctly set the gmtoffset when we have it. Add a comment to try and it more obvious what's going on following discussion on the list. Update the time test to be more obvious and use the new test functions. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61824 13f79535-47bb-0310-9956-ffa450edef68
* Cleaned up the code a bit and refactored common functionality.brane2001-06-281-35/+31
| | | | | | | | | | | | | | | (set_xt_gmtoff_from_tm): Check APR_HAS_THREADS and _POSIX_THREAD_SAFE_FUNCTIIONS, like elsewhere. (explode_time): New function. Contans most of the logic that was previowsly in tm_to_exp, apr_explode_time and apr_explode_localtime. (apr_explode_time and, apr_explode_localtime): Call explode_time. (tm_to_exp): Removed. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61813 13f79535-47bb-0310-9956-ffa450edef68
* apr_explode_localtime was not setting result's tm_usec field.brane2001-06-281-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61810 13f79535-47bb-0310-9956-ffa450edef68
* Solaris doesn't have (struct tm *)->tm_gmtoff, so the server logstrawick2001-06-221-13/+4
| | | | | | | | | | | | | | | | | | | | | were written in GMT regardess of the system timezone. (The well-known Solaris headache) The Solaris-kludge did exist and worked in 2.0.16 of srclib/apr/time/unix/time.c:apr_explode_localtime(), but the code was moved from apr_explode_localtime() to set_xt_gmtoff_from_tm() around version 1.38. So the attached patch will use tm_to_exp() (which calls set_xt_gmtoff_from_tm()) in apr_explode_localtime(), which fixed the problem. PR: 7902 Submitted by: Taketo Kabe <kabe@sra-tohoku.co.jp> Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61793 13f79535-47bb-0310-9956-ffa450edef68
* Something is still broken with the testtime, but this gets us building.wrowe2001-06-061-0/+13
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61718 13f79535-47bb-0310-9956-ffa450edef68
* help OS/390 recover from its post-Hackathon hangovergregames2001-04-191-0/+2
| | | | | | | | (don't use try to use tm_gmtoff if it doesn't exist, and neither does _POSIX_THREAD_SAFE_FUNCTIONS) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61542 13f79535-47bb-0310-9956-ffa450edef68
* Fix OS/2 build where we have no gmtime_r (or an *_r's for that matter) orbjh2001-04-171-1/+10
| | | | | | | tm_gmtoff. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61524 13f79535-47bb-0310-9956-ffa450edef68
* Fix detection of tm_gmtoff in struct tm, and remove some warnings.rbb2001-04-141-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61522 13f79535-47bb-0310-9956-ffa450edef68
* Daniel Padwa <daniel.padwa@gs.com> pointed out the last patch brokedreid2001-04-122-2/+10
| | | | | | | | | | | | the build on Solaris, so this patch is an attempt to get it building again. The eventual solution will be more general access functions for getting/setting the timezone from the different structures. I've made a partial start at it. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61519 13f79535-47bb-0310-9956-ffa450edef68
* Some adjustments to the time code that gets us working better with timezones.dreid2001-04-122-69/+54
| | | | | | | Also change the beos sleep to use snooze instead of select. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61515 13f79535-47bb-0310-9956-ffa450edef68
* REVIEW Req'd ... solve the implode/explode discrepancy, but I hacked thiswrowe2001-04-021-30/+19
| | | | | | | | at 40,000 ft, and my brain was not altogether there. This merits discuss at the Hackathon git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61431 13f79535-47bb-0310-9956-ffa450edef68
* Hmmm... on this (rare) point the castless caste looses :-/wrowe2001-03-311-1/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61407 13f79535-47bb-0310-9956-ffa450edef68
* Fix the hosed #ifdef APR_HAVE_FOO_H tests, the #if HAVE_ tests, andwrowe2001-02-252-6/+6
| | | | | | | also cleanup s/#ifdef HAVE_FOO_H/#if APR_HAVE_FOO_H/ whrere appropriate. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61303 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright to 2001fielding2001-02-165-5/+5
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61235 13f79535-47bb-0310-9956-ffa450edef68
* s/pupt/put/g typodougm2001-02-082-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61195 13f79535-47bb-0310-9956-ffa450edef68
* renaming various functions for consistency sakedougm2001-02-082-10/+10
| | | | | | | | | | | see: http://apr.apache.org/~dougm/apr_rename.pl PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61194 13f79535-47bb-0310-9956-ffa450edef68
* Win32: (IsLeapYear): New macro for quickly figgerin' out if a given year is astoddard2001-02-021-3/+17
| | | | | | | | | | | | | | leap year. (SystemTimeToAprExpTime): Perform the calculation of tm_yday. Also, negate the sign of the tm_gmtoff field to be consistent with Unix platforms and APR header file comments. ToDo: Perhaps the IsLeapYear macro is useful for other OSes. Submitted by: Mike Pilato Reviewed by: Bill Stoddard git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61181 13f79535-47bb-0310-9956-ffa450edef68
* OS2 was chasing os2errno.h which we hid in a private platform directory,wrowe2001-01-281-4/+0
| | | | | | | | | | | | but apr_errno.h is public. It also called in <os.h> with possibly inappropriate headers, and if os2.h follows any other header's usual conventions, calling it the second time for more declarations can be dicey. Relocated <os2.h> into apr.h.in (accessable to all, since it's later leveraged by most), which simplifies a bunch of code, and relocate all of the os2errno values into apr_errno.h for APR_STATUS_IS_FOO tests. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61156 13f79535-47bb-0310-9956-ffa450edef68
* Add remaining APR_DECLARE()s to all headers. Conditionally addedwrowe2001-01-182-17/+25
| | | | | | | | | | | | | | | | | | | | APR_DECLARES() to the sources, based on compilation emits (there are many that should be changed eventually, but the compiler will emit errors if those sources are added for win32). This change also splits libapr from apr, so the two projects are compiled seperately. Both .dsp files must be kept up-to-date with source file revisions. Finally, libapr.def is no longer needed - so it is gone. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61072 13f79535-47bb-0310-9956-ffa450edef68
* Libtool-ize APR.gstein2001-01-092-24/+8
| | | | | | | | | | | | | | | | | To simplify the task, I also shifted the Makefiles to include a rules.mk (based on APRUTIL's with a few tweaks). Still needs some work to remove the INCLUDES setup in all the Makefiles (these can be shared). buildconf now does more work (and generates some output) aclocal.m4 is based on a number of M4 files, rather than standalone apr/test/ has been updated but is probably broken in a few ways. objs/ is now gone. we link directly from the .lo files. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61037 13f79535-47bb-0310-9956-ffa450edef68
* Move apr_private.h.in from the include directory to the arch/unixrbb2000-12-081-1/+2
| | | | | | | | | | | directory. This removes all temptation to include apr_private.h from outside of APR, because it just isn't available. This also highlighted a bunch of holes in our header file setup. Basically, just directories that were never migrated to the curret setup. Submitted by: Will Rowe and Ryan Bloom git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60919 13f79535-47bb-0310-9956-ffa450edef68
* This patch removes the dependencies from Makefile.in. Dependenciestrawick2000-11-151-41/+2
| | | | | | | | | | | | | | | | | will not be checked into CVS, as they are added to Makefile when the user runs "make depend." The exact mechanism for building dependencies is moved to a script called mkdep.sh in the APR helpers directory. Folks are free to make the mechanism more general (i.e., work on systems without gcc -MM), but for now it still requires gcc -MM. The patch also removes some commented out variable definitions and rules. BeOS- and OS/2-specific makefiles have not been updated. I'll post a patch to those or go ahead and commit them later, but David and Brian will get to test them. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60727 13f79535-47bb-0310-9956-ffa450edef68
* Move all of the time private header files to an arch directory underrbb2000-11-095-76/+4
| | | | | | | | | the include directory. All private header files for APR are being moved. This allows platforms that only implement some of the APR types to compile cleanly. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60661 13f79535-47bb-0310-9956-ffa450edef68
* add missing functiongstein2000-11-031-0/+4
| | | | | | | | Submitted by: Branko Cibej <brane@xbc.nu> Reviewed by: Greg Stein git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60628 13f79535-47bb-0310-9956-ffa450edef68
* Renamed all MODULE_EXPORT symbols to AP_MODULE_DECLARE and all symbolswrowe2000-10-162-4/+4
| | | | | | | | | | for CORE_EXPORT to AP_CORE_DECLARE (namespace protecting the wrapper) and retitled API_EXPORT as AP_DECLARE and APR_EXPORT as APR_DECLARE. All _VAR_ flavors changes to _DATA to be absolutely clear. Thank you Greg, for the most obvious suggestion. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60587 13f79535-47bb-0310-9956-ffa450edef68
* Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...wrowe2000-08-065-70/+73
| | | | | | | | | | | | | see src/lib/apr/apr_compat.h for most details. Also a few minor nits to get Win32 to build. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60481 13f79535-47bb-0310-9956-ffa450edef68
* prefix libapr functions and types with apr_dougm2000-08-026-65/+65
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60470 13f79535-47bb-0310-9956-ffa450edef68
* torch some obsolete/unused functions.gstein2000-07-081-25/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60316 13f79535-47bb-0310-9956-ffa450edef68
* Update dependancies in APRrbb2000-07-071-2/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60315 13f79535-47bb-0310-9956-ffa450edef68
* Continuing the cleanup of beos code.dreid2000-06-171-0/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60214 13f79535-47bb-0310-9956-ffa450edef68
* Win32: Fix problem with UTC offset not being correctly reported in thestoddard2000-06-161-4/+23
| | | | | | | access log. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60211 13f79535-47bb-0310-9956-ffa450edef68
* Update dependencies.ben2000-06-111-12/+14
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60173 13f79535-47bb-0310-9956-ffa450edef68
* Use OS/2 native call in ap_sleep().bjh2000-06-111-3/+8
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60169 13f79535-47bb-0310-9956-ffa450edef68
* Change ap_time_t to ap_interval_time_t for ap_sleep.rbb2000-06-081-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60152 13f79535-47bb-0310-9956-ffa450edef68
* Both of these need apr_private.h in order to include the correct headers.rbb2000-06-072-0/+5
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60151 13f79535-47bb-0310-9956-ffa450edef68
* Add a new ap_sleep function for apr. This basically sleeps for a specifiedrbb2000-06-071-1/+7
| | | | | | | number of microseconds. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60150 13f79535-47bb-0310-9956-ffa450edef68