summaryrefslogtreecommitdiff
path: root/lib/Time
Commit message (Collapse)AuthorAgeFilesLines
* do not count tests, instead use done_testing()Michiel Beijen2021-12-042-4/+4
| | | | | | | | | | | | | | | Having to count tests is annoying for maintainers. Also, manually updating count tests is problematic when multiple people are working on the same code; it causes merge conflicts and recounts. done_testing() is available since Test::More 0.88 which was released in 2009. This commit changes all tests under lib/ that use Test::More and were planning the number of tests. Michiel Beijen is now a Perl author
* Replace multiple 'use vars' by 'our' in libNicolas R2017-11-112-6/+15
| | | | | | | | Using vars pragma is discouraged and has been superseded by 'our' declarations available in Perl v5.6.0 or later. This commit is about replacing the usage of 'vars' pragma by 'our' in 'lib' directory.
* Convert gmtime.t, localtime.t and overloading.t to Test::More.Nicholas Clark2010-07-012-12/+2
|
* Don't try to calculate a time over the conservative failure boundary.Michael G. Schwern2010-02-052-4/+6
| | | | | | | | | | | Otherwise gmtime(2**66) will cause a very, very, very long loop and DOS Perl. Add a test that very, very large times don't send gmtime and localtime into a loop Had to fix some revealed mistakes in op/time.t when warnings were turned on. Fix Time::gmtime and Time::localtime tests to match the new limits of gm/localtime.
* Move Time::Local from lib to ext.Nicholas Clark2009-09-132-599/+0
|
* Remove useless tests from lib/Time/Local.tSteffen Mueller2009-09-021-19/+1
| | | | timelocal.pl simply uses Time::Local. No point in testing that.
* Mark all .t and .pm files as non executableRafael Garcia-Suarez2009-06-061-0/+0
|
* Merge branch 'schwern/y2038' into bleadRafael Garcia-Suarez2009-01-034-166/+69
|\ | | | | | | | | | | | | | | Conflicts: lib/Time/Local.pm lib/Time/Local.t reentr.h
| * Update from y2038.Michael G. Schwern2009-01-032-5/+3
| | | | | | | | | | | | | | | | | | | | | | Add trace code. Fix implied negative time in localtie64_r(). This fixes Windows. Put in some more tests around small negative and positive times to try and catch the above. Explain the loss of accuracy due to use of doubles in perlport.
| * Everything should now work with negative times, so let's pull out all the ↵Michael G. Schwern2009-01-032-46/+22
| | | | | | | | skips from the tests.
| * Fix the test plan on gmtimeMichael G. Schwern2009-01-031-4/+10
| | | | | | | | | | | | Use the new LOCALTIME_MIN/MAX constants. Use the system gmtime, it'll probably be faster... maybe.
| * We are no longer slaves to the vagaries of time_t.Michael G. Schwern2009-01-031-21/+0
| |
| * Write down the logic behind the localtime vs gmtime date ranges.Michael G Schwern2009-01-032-1/+4
| |
| * Cleaning up the Time::gmtime and Time::localtime tests and make them go past ↵Michael G Schwern2009-01-032-85/+27
| | | | | | | | | | | | | | 2038. I'm a little nervous about assuming negative times are going to work with localtime(), but gmtime() is safe.
| * Patch in a 64 bit clean gmtime_r() and localtime_r() from the y2038 project. ↵Michael G Schwern2009-01-032-33/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://y2038.googlecode.com/ so Perl is no longer subject to the y2038 bug. Use Quad_t for our 64 bit time_t replacement. Temporarily through out the "broken localtime work around". That will have to be integrated into localtime64_r(). Fix Time::Local to handle the new expanded date range. "use integer" had to go as it pegged scalars to 32 bit integers which aren't large enough to hold the new time range. There are probably portability issues. timegm, for example, is not portable. Also the assumption that "long" is 64 bits is probably wrong.
* | Upgrade to Time::Local 1.1901.Nicholas Clark2008-11-022-23/+44
|/ | | p4raw-id: //depot/perl@34699
* 64-bit fix for Time::LocalJan Dubois2007-12-261-6/+3
| | | | | | From: "Jan Dubois" <jand@activestate.com> Message-ID: <044301c84334$c6aa2960$53fe7c20$@com> p4raw-id: //depot/perl@32728
* - Update Time::Local to latest versionDave Rolsky2007-11-021-1/+14
| | | | | Message-ID: <alpine.DEB.0.9999.0710311225010.19396@urth.org> p4raw-id: //depot/perl@32211
* Upgrade to Time::Local 1.17Rafael Garcia-Suarez2007-01-262-2/+2
| | | p4raw-id: //depot/perl@29994
* Upgrade to Time::Local 1.16Rafael Garcia-Suarez2007-01-242-6/+20
| | | p4raw-id: //depot/perl@29940
* Change 29936 missed a ;Nicholas Clark2007-01-231-1/+1
| | | p4raw-id: //depot/perl@29937
* Fix to Time::Local to fix problems with leap year calculation.Steve Peters2007-01-231-1/+4
| | | p4raw-id: //depot/perl@29936
* Time::Local patch take 2Dave Rolsky2007-01-232-10/+32
| | | | | Message-ID: <Pine.LNX.4.64.0701220945040.28849@urth.org> p4raw-id: //depot/perl@29931
* Fixes for the test suite on OS/2Ilya Zakharevich2006-12-181-1/+2
| | | | | Message-ID: <20061214023222.GA29084@powdermilk.math.berkeley.edu> p4raw-id: //depot/perl@29578
* PATCH: Sync Time::Local in blead to 1.13 on CPANDave Rolsky2006-08-092-168/+190
| | | | | Message-ID: <Pine.LNX.4.64.0608090422450.8735@urth.org> p4raw-id: //depot/perl@28683
* [perl #39876] Time::gmtime 1.02 examples patchAlexandr Ciornii2006-07-191-4/+5
| | | | | | | | From: Alexandr Ciornii (via RT) <perlbug-followup@perl.org> Message-ID: <rt-3.6.HEAD-25412-1153313196-897.39876-75-0@perl.org> Pod fixes for Time::gmtime.pm p4raw-id: //depot/perl@28600
* Upgrade to Time::Local 1.12_01Rafael Garcia-Suarez2006-03-312-197/+161
| | | p4raw-id: //depot/perl@27642
* Upgrade to Time::Local 1.12Rafael Garcia-Suarez2006-03-232-16/+22
| | | p4raw-id: //depot/perl@27581
* Your bug reports for Time::LocalDave Rolsky2005-08-171-8/+4
| | | | | | | Message-ID: <Pine.LNX.4.61.0508161120520.26270@urth.org> An improvement on change 25287 from Dave Rolsky p4raw-id: //depot/perl@25300
* Fix lib/Time/Local.t for bcc32 in non GMT time zonesSteve Hay2005-08-111-0/+7
| | | | | | See comments at: http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2005-08/msg00115.html p4raw-id: //depot/perl@25287
* lib/Time/Local.t: time_t is unsigned on VMSCraig A. Berry2005-04-241-1/+4
| | | | | | From: "Craig A. Berry" <craigberry@mac.com> Message-ID: <426AD980.2010801@mac.com> p4raw-id: //depot/perl@24310
* Upgrade to Time::Local 1.11Rafael Garcia-Suarez2005-02-102-22/+82
| | | p4raw-id: //depot/perl@23956
* Upgrade to Time::Local 1.10.Rafael Garcia-Suarez2004-06-082-3/+3
| | | p4raw-id: //depot/perl@22908
* Integrated Time-Local-1.09 from Dave RolskyH.Merijn Brand2004-04-072-20/+40
| | | | | | Corrected a wrap error from the CPAN version to match #22670 Tested on AIX to make sure the skip is still needed p4raw-id: //depot/perl@22671
* Disable the edge case tests for timegm and timelocal onH.Merijn Brand2004-04-071-0/+5
| | | | | | AIX-4.3 since the OS is obsoleted, and fixes are not to be expected p4raw-id: //depot/perl@22670
* Upgrade to Time::Local 1.07_94Rafael Garcia-Suarez2003-12-202-77/+165
| | | p4raw-id: //depot/perl@21935
* Re: [PATCH] Bring Time::Local to 1.07Dave Rolsky2003-07-031-1/+1
| | | | | Message-ID: <Pine.LNX.4.56.0307031435270.29915@urth.org> p4raw-id: //depot/perl@19966
* Upgrade to Time::Local 1.06, by Dave RolskyRafael Garcia-Suarez2003-06-062-19/+47
| | | p4raw-id: //depot/perl@19702
* Re: [perl #19393] Bug in Time::localtime?Dave Mitchell2003-01-162-2/+27
| | | | | | | | | Message-ID: <20030101214324.F12907@fdgroup.com> (integrated from change #18397 in maint-5.8) p4raw-link: @18397 on //depot/maint-5.8/perl: 7bc6bea4535085425366718a732073dd9f13e3fc p4raw-id: //depot/perl@18497 p4raw-integrated: from //depot/maint-5.8/perl@18496 'copy in' lib/Time/Local.pm lib/Time/Local.t (@17645..)
* Integrate changes #16199 and #16201 from macperl;Jarkko Hietaniemi2002-04-261-7/+27
| | | | | | | | | | Time::Local compatibility patches, from Graham MacPerl require() portability patches p4raw-link: @16199 on //depot/macperl: 029195cc16ed49b9d6f99746bf12dad919bcab76 p4raw-id: //depot/perl@16204 p4raw-integrated: from //depot/macperl@16203 'copy in' lib/Time/Local.pm (@16123..) 'merge in' pp_ctl.c (@16123..)
* Fix lib/Time/Local.pm for VOSPaul Green2002-03-281-1/+9
| | | | | Message-Id: <200203281322.IAA15632@mailhub1.stratus.com> p4raw-id: //depot/perl@15583
* Re: Cannot handle date (0, 0, 0, 2, 0, 1970)Graham Barr2002-02-201-5/+4
| | | | | Message-Id: <20020219230847.G66560@pobox.com> p4raw-id: //depot/perl@14777
* Alternative Time::Local algorithm that uses matemathical formulaGraham Barr2002-01-191-111/+86
| | | | | for timegm instead of progressive guessing p4raw-id: //depot/perl@14345
* lib/Time/Local.t patch w/o 2038 check Paul Green2002-01-191-30/+44
| | | | | Message-Id: <200201190349.WAA28294@mailhub2.stratus.com> p4raw-id: //depot/perl@14342
* Retract #14327 for now, going to the limit seemsJarkko Hietaniemi2002-01-181-41/+30
| | | | | to be too much for many platforms. p4raw-id: //depot/perl@14334
* (retracted by #14334)Paul Green2002-01-181-30/+41
| | | | | | Subject: [PATCH] Improving lib/Time/Local.t Message-Id: <200201180335.WAA08768@mailhub2.stratus.com> p4raw-id: //depot/perl@14327
* avoid v-strings with require/useRonald J. Kimball2001-09-213-3/+5
| | | | | Message-Id: <20010921123440.A148500@linguist.thayer.dartmouth.edu> p4raw-id: //depot/perl@12113
* Bump up versions because of #12041.Jarkko Hietaniemi2001-09-172-2/+2
| | | p4raw-id: //depot/perl@12049
* Change use|require 5.005_64 to use|require 5.6.1.Jarkko Hietaniemi2001-09-162-2/+2
| | | p4raw-id: //depot/perl@12041
* lib/Time/Local.pmDaniel S. Lewart2001-09-021-8/+9
| | | | | Message-ID: <20010902065001.A21529@staff1.cso.uiuc.edu> p4raw-id: //depot/perl@11827