summaryrefslogtreecommitdiff
path: root/cpan/Time-Piece
Commit message (Collapse)AuthorAgeFilesLines
* Fix pthread include error for Time::PieceH.Merijn Brand2010-07-011-37/+17
| | | | | | | | | | | | Oh, um, lovely. Did I really want to look at that code? I can only assume that in *BSD the API for _strptime() is fixed. But it's static for us, so it doesn't need to be fixed. Does the appended patch fix it? Nicholas Clark Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
* Needed cast to malloc return value in Piece.xs.Craig A. Berry2010-06-291-1/+1
| | | | | | | | | | g++ said: Piece.xs:906: error: invalid conversion from void* to char* Reported by George Greer in: Message-ID: <alpine.LFD.2.00.1006292137180.10316@ein.m-l.org>
* Remove alloca() use from Time::Piece for portability.Craig A. Berry2010-06-292-17/+8
| | | | | | | | | | | | | In 1.17, T::P started using its own strptime (almost) everywhere, and this _strptime contains a single reference to alloca(). The Linux and BSD man pages recommend against using alloca(), the function doesn't exist on HP-UX or VMS, and it's impossible to error check it. So replace it here with malloc(). If getting three or four bytes from the heap instead of the stack is considered a problem, an alternative would be researching the maximum length of a timezone name and using an automatic variable to hold it.
* Update Time-Piece to CPAN version 1.20Chris 'BinGOs' Williams2010-06-267-56/+256
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [DELTA] 1.20 - Fix for alloca broke Solaris - Fixed documentation buggette about strptime - Added ->pretty() method for Time::Seconds objects - Add %s support to strptime 1.19 - Fix for alloca broke FreeBSD 1.18 - Fix for alloca on IRIX 1.17 - Force all to use internal strptime then everyone gets %z even OSX users. - Finally figured out the timezone test failures on Win32 and fixed them. 1.16 - Implement %z for the internal implementation of strptime(). Unfortunately this doesn't get picked up everywhere, so there are no tests for it (yet - patches welcome). - Fix for major bug in add_months() using negative months which were multiples of 12. Also affected add_years() with negative years. - Fix for object creation bug in get_epochs which called new from object but that wasn't supported in the new() code. - Added docs about the weakness of using epoch seconds internally and suggested alternatives. - Removed useless "use UNIVERSAL qw(isa)" line. - Fix for installing over core perl version.
* [perl# 73490] Bump Time::Piece to a devel release that's newer than whatJesse Vincent2010-03-112-3/+3
| | | | | | | was in Blead but is old than the current updated CPAN release. Comment out a now deprecated 'use UNIVERSAL' line to prevent warnings from production code. It's bad form to ship software that deprecates things and then keeps using them and warning. Thanks to xdg++ for the spotting.
* Move Time::Piece from ext/ to cpan/Nicholas Clark2009-10-0213-0/+2680