DateTimeX namespace?

2007-11-06 Thread Dave Rolsky
There's been several cases recently of folks publishing new modules to CPAN in the DateTime namespace that don't really fit in with the DateTime project as a whole. Sometimes these modules are duplicative of existing efforts, and the authors can hopefully be redirected towards helping an existi

ANNOUNCE: DateTime::TimeZone 0.6902

2007-11-05 Thread Dave Rolsky
0.6902 2007-11-05 - Fixed many sloppy uses of eval blocks which would leave $@ set after calling various DT::TZ methods/functions. This could cause unrelated error checking to find $@ set to something and log an error or die. Reported by Kat. 0.6901 2007-11-02 - Add Win32::TieRegistr

Re: isa error when calling strftime with '%z' via Apache

2007-11-05 Thread Dave Rolsky
On Mon, 5 Nov 2007, Kit kat wrote: 5B> The following is beyond my (limited) knowledge of Perl: I have installed DateTime-0.41and I have been able to create an error by calling strftime with a '%z' in the input string, but it seems to calculate the UTC offset correctly. The strange part is that

Re: DateTime::TimeZone 0.69 with Olson 2007i

2007-11-01 Thread Dave Rolsky
On Thu, 1 Nov 2007, Jonathan Leffler wrote: That is impressive - I got the notification that 2007i was released about two hours ago (according to Gmail) through my subscription to the [EMAIL PROTECTED] mailing list. Well done! Thanks. However, the only thing I really did was automate the proc

ANNOUNCE: DT::TimeZone 0.69

2007-11-01 Thread Dave Rolsky
0.69 2007-11-01 - This release is based on version 2007i of the Olson database, which includes changes to Cuba and Syria. -dave /*=== VegGuide.Orgwww.BookIRead.com Your guide to all that's veg. My book blog ==

ANNOUNCE: DateTime::TimeZone 0.68

2007-10-01 Thread Dave Rolsky
0.68 2007-10-01 - This release is based on version 2007h of the Olson database, which includes changes to Egypt, Iran, Palestine, Brazil, and Venezuela. -dave /*=== VegGuide.Orgwww.BookIRead.com Your guide to all tha

Re: REQ: Additional 'truncate' option

2007-09-30 Thread Dave Rolsky
On Thu, 13 Sep 2007, Rick Measham wrote: Is there any chance we can have ->truncate( to => 'Sunday' ) for truncating to week-beginning-on-sunday? Heh, you got Warnocked. I see it's use, but it's really easy to do already: $dt->truncate( to => 'week' )->subtract( days => 1 ); -dave /*

Re: [rt.cpan.org #29330] 004_locale_defaults test failing

2007-09-12 Thread Dave Rolsky
On Thu, 13 Sep 2007, Rick Measham wrote: via RT wrote: Queue: DateTime-Format-Strptime Subject: 004_locale_defaults test failing Ticket http://rt.cpan.org/Ticket/Display.html?id=29330 > The 004_locale_defaults.t failed during make test. This is also happening for the CPAN::Report

ANNOUNCE: DateTime 0.41

2007-09-10 Thread Dave Rolsky
0.41 2007-09-10 [ BUG FIXES ] - The 13strftime.t test was failing when DateTime::Locale 0.35 was installed. The test has been adjusted and we now list DT::Locale 0.35 as the minimum version. Reported by David Cantrell. -dave /*=== VegGuid

ANNOUNCE: DateTime::Locale

2007-09-09 Thread Dave Rolsky
0.35 2007-09-09 - Based on CLDR 1.5 This includes a bunch of new locales, so if there's a language you needed that wasn't available before, it may be there now. -dave /*=== VegGuide.Orgwww.BookIRead.com Your guide t

ANNOUNCE: DateTime::Format::Builder 0.7901

2007-09-01 Thread Dave Rolsky
0.7901 2007-09-01 - The memory-cycle.t test will fail if you have PadWalker and the current Devel::Cycle (1.07) installed. I forgot I had patched my local Devel::Cycle to fix this bug. /*=== VegGuide.Orgwww.BookIRead

ANNOUNCE: DateTime::Format::Builder 0.79

2007-08-30 Thread Dave Rolsky
0.79 2007-08-30 - Fix several circular references in DateTime::Format::Builder::Parser. This would be triggered by any standard usage of DT::F::Builder. Reported by Carl Franks. RT #29034. /*=== VegGuide.Orgwww.B

ANNOUNCE: DateTime 0.40

2007-08-30 Thread Dave Rolsky
0.40 2007-08-30 [ BUG FIXES ] - A custom formatter would be lost after a call to set() or truncate(). Reported by Kjell-Magne Øierud. RT #28728. - The truncate() method docs said it accepted "second" as a parameter, but it didn't actually do the right thing with it. Now it always trunca

Re: Time zone in DateTime::_stringify()

2007-08-20 Thread Dave Rolsky
On Mon, 13 Aug 2007, Kjell-Magne Øierud wrote: I have one question about the behavior the _stringify() method. As documented the method defaults to return the equivalent of $dt->ymd('-') . 'T' . $dt->hms(':') What I'm wondering about is why the time zone is not included? Like in $dt->strftime

ANNOUNCE: DateTime::TimeZone 0.67

2007-08-20 Thread Dave Rolsky
0.67 2007-08-20 - This release is based on version 2007g of the Olson database, which includes changes to Egypt, Antarctica, Australia, and Indiana (Perry County). /*=== VegGuide.Orgwww.BookIRead.com Your guide to

Responses to use Perl journals wanted ...

2007-08-07 Thread Dave Rolsky
http://use.perl.org/~jdavidb/journal/34032 http://use.perl.org/~jdavidb/journal/34033 I'm too cranky to do a good job, but if someone less cranky wanted to respond, that'd be good. -dave /*=== VegGuide.Orgwww.BookIRead.c

ANNOUNCE: DateTime 0.39

2007-07-17 Thread Dave Rolsky
0.39 2007-07-17 - Yet more changes to how infinity is handled and tested. This passes for me on 32-bit Win XP and 64-bit Linux, which is promising. Patch by Yitzchak Scott-Thoennes. RT #22392. -dave /*=== VegGuide.Org

Re: [rt.cpan.org #28075] missing prereq DateTime::Helpers

2007-07-10 Thread Dave Rolsky
On Tue, 10 Jul 2007, Rick Measham wrote: Martin Thurn via RT wrote: Tue Jul 10 00:18:37 2007: Request 28075 was acted upon. Transaction: Ticket created by MTHURN Queue: DateTime-Format-Strptime Subject: missing prereq DateTime::Helpers Broken in: 1.0700 Severity: Important

ANNOUNCE: DateTime::TimeZone 0.6603

2007-07-07 Thread Dave Rolsky
0.6603 2007-07-07 - The DateTime::TimeZone->names_in_country() method returned the wrong thing in scalar context. Instead of a simple array reference, it returned a reference to an array reference. Reported by John O'Rourke. RT #27843. /*

Re: User preferences for I18N

2007-07-07 Thread Dave Rolsky
On Sat, 7 Jul 2007, Bill Moseley wrote: I populate the timezone table with DateTime::TimeZone->all_names. When a user sets their timezone they must pick from what's available in the timezone table. Is the list of timezones reasonably static? I assume it doesn't change very often. Actually, i

Re: Geographical boundaries for the continental US tz zones (fwd)

2007-07-01 Thread Dave Rolsky
This might be of interest to folks on this list. -- Forwarded message -- Date: Sun, 01 Jul 2007 10:07:11 -0700 From: Eric Muller <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Geographical boundaries for the continental US tz zones Resent-Date:

ANNOUNCE: DateTime 0.38

2007-06-30 Thread Dave Rolsky
Nothing too major in this release, just some outstanding minor fixes. 0.38 2007-06-30 [ BUG FIXES ] - Require Test::Pod::Coverage 1.08 in pod-coverage.t, since we use all_modules, which was only exported as of version 1.08. Reported by MATSUNO Tokuhiro. Fixes RT #26594. - Fixed a bad lin

ANNOUNCE: DateTime::TimeZone 0.6602

2007-05-29 Thread Dave Rolsky
0.6602 2007-05-29 - There was a bug in the 04local.t tests that did not manifest itself on my dev machine, but would've been seen on any machine with an /etc/default/init file. Reported by Jonathan Leffler. -dave /*=== VegGuide.Org

Re: Build problems with DT::TZ 0.6601 on Solaris 10 with Perl 5.8.8

2007-05-29 Thread Dave Rolsky
On Tue, 29 May 2007, Jonathan Leffler wrote: 1. The distribution included the two *.tmp files that were not listed in the MANIFEST - pod2htmd.tmp and pod2htmi.tmp - so CPANPLUS wouldn't trust the distribution. Fix: Black JL: cd DateTime-TimeZone-0.6601 Black JL: ls *.tmp pod2htmd.tmp pod2htm

Re: DateTime::Event again

2007-05-16 Thread Dave Rolsky
On Wed, 16 May 2007, Simon Wistow wrote: On Wed, May 16, 2007 at 04:46:56PM +0100, Zefram said: A "recurring event" is not a single event. It is a structured group of events. You should have distinct classes for single event and recurrence. Most of the methods you list are applicable to one c

Re: Timezone Problem

2007-05-10 Thread Dave Rolsky
On Thu, 10 May 2007, Harder, Paul wrote: One of our problems is to automate the task of deciding what time zone pertains, given the locality. In other words, if the location is "KIAH", which is the ICAO code for Houston Intercontinental Airport in Houston, Texas, how can I know what time zone

ANNOUNCE: DateTime::TimeZone 0.6601

2007-05-08 Thread Dave Rolsky
0.6601 2007-05-08 - 0.66 screwed up the test count in 04local.t if certain tests were skipped. Reported by David Precious. -dave /*=== VegGuide.Orgwww.BookIRead.com Your guide to all that's veg. My book blog ===

ANNOUNCE: DateTime::TimeZone 0.66

2007-05-08 Thread Dave Rolsky
/usr/share/zoneinfo. RT #26438. - Require Cwd 3.0+, since Cwd;:abs_path() in older versions does not following a chain of symlinks. Dave Rolsky Compassionate Action for Animals - http://www.exploreveg.org/ VegGuide.Org - http://www.vegguide.org/

ANNOUNCE: DateTime::TimeZone 0.65

2007-04-21 Thread Dave Rolsky
older version of the Olson catalog than the current version of DT::TZ and issue warning if this is the case. This is useful because obsolete module files may exist when a zone name is replaced by a link, or just retired entirely. Dave Rolsky Compassionate Action for Animals - http

ANNOUNCE: DateTime::TimeZone 0.64

2007-04-02 Thread Dave Rolsky
0.64 2007-04-02 - This release is based on version 2007e of the Olson database (changes in the Syria and Honduras time zones). -dave /*=== VegGuide.Orgwww.BookIRead.com Your guide to all that's veg. My book blo

ANNOUNCE: DateTime 0.37

2007-03-30 Thread Dave Rolsky
0.37 2007-03-30 [ BUG FIXES ] - Require DateTime::Locale 0.34, which fixes a problem that manifested when thawing a DateTime.pm object. See http://www.mail-archive.com/datetime@perl.org/msg05633.html for some discussion of this. - Added pod coverage tests, and added some POD for undocum

RE: instance data for DateTime derived classes

2007-03-28 Thread Dave Rolsky
On Wed, 28 Mar 2007, Boorstein, Daniel B wrote: Are you saying that in general you don't expect classes derived from DateTime to include additional instance data in the conventional manner (tacking it onto $self)? I'm not even sure I expect classes to derive from DateTime at all. DateTime.pm

Re: instance data for DateTime derived classes

2007-03-27 Thread Dave Rolsky
On Wed, 28 Mar 2007, Rick Measham wrote: Boorstein, Daniel B wrote: I realize this is my problem since I broke encapsulation, but I'm wondering if others have dealt with this already. Is there a designated means for derived classes to add custom instance data? I've perused the docs, but didn't

Re: DateTime::Format::MySQL supporting time zones

2007-03-26 Thread Dave Rolsky
On Mon, 26 Mar 2007, Nick Hibma wrote: This could be simplified if we could specify a default time zone which is by default set to 'floating' for the DateTime::Format::MySQL module: use Date::Format::MySQL; Date::Format::MySQL::set_default_timezone('GMT'); I tend to not favo

ANNOUNCE: DateTime::TimeZone 0.63

2007-03-20 Thread Dave Rolsky
0.63 2007-03-20 - This release is based on version 2007d of the Olson database. - Fix determination of local time zone on systems where /etc/localtime is a symlink. This broke in 0.61. Reported by Bradley C Bailey. RT #25348. -dave /*==

Re: Help pulling dst change dates from DateTime::TimeZone

2007-03-06 Thread Dave Rolsky
On Tue, 6 Mar 2007, Anthony R. J. Ball wrote: It might make sense in that case to return the observance date and somehow return the change that happens, or add another call that returns that data for that change. Maybe return a datetime object and a duration object? Or have a separate call that

Re: Help pulling dst change dates from DateTime::TimeZone

2007-03-06 Thread Dave Rolsky
On Tue, 6 Mar 2007, Zefram wrote: Dave Rolsky wrote: I'd prefer multiple methods to a third parameter. Different names provides clarity. Who would know what a number means without looking in the docs? It's not meant to be used without reading the doc at least once. Once read, of c

Re: Help pulling dst change dates from DateTime::TimeZone

2007-03-06 Thread Dave Rolsky
On Tue, 6 Mar 2007, Zefram wrote: Anthony R. J. Ball wrote: I want to be able to grab the actual DST change dates for a timezone and year. Some of what I'm doing would benefit from this too. I suggest an addition to the DT::TZ API: =head2 $tz->boundary_for_datetime($dt, $which) I'd pr

Re: ANNOUNCE: DateTime::TimeZone 0.62

2007-03-06 Thread Dave Rolsky
On Tue, 6 Mar 2007, Zefram wrote: Dave Rolsky wrote: - This release is based on version 2007c of the Olson database. Where do we stand regarding my proposed changes? Are you waiting for anything from me? No, I'm just still thinking about all the implications, and I've been

Re: DateTime::Locale / Storable issue

2007-03-05 Thread Dave Rolsky
On Mon, 5 Mar 2007, Éric Cholet wrote: Are there any plans to apply Tatsuhiko Miyagawa's patch at http://www.mail-archive.com/datetime@perl.org/msg05633.html It fixes an issue I am having when thawing seralized datetimes: Parameter #1 (undef) to DateTime::Locale::load was an 'undef', which is

ANNOUNCE: DateTime::Locale 0.34

2007-03-05 Thread Dave Rolsky
0.34 2007-03-05 - Removed the use of STORABLE_attach from this module entirely, since it seemed to have a buggy interaction with DateTime.pm. See http://www.mail-archive.com/datetime@perl.org/msg05633.html for some discussion of this. I'm hesitant to say the bug is in Storable, but I'm

ANNOUNCE: DateTime::TimeZone 0.62

2007-02-26 Thread Dave Rolsky
0.62 2007-02-26 - This release is based on version 2007c of the Olson database. -dave /*=== VegGuide.Orgwww.BookIRead.com Your guide to all that's veg. My book blog ==

Re: revision of DT::TZ name parsing

2007-02-20 Thread Dave Rolsky
On Mon, 19 Feb 2007, Zefram wrote: I found a better way: URI::file can translate between filename syntaxes. We can specify that the $TZ setting is a Unix-style filename, and it gets translated as appropriate. On Windows you can do "/c:/etc/localtime" and the file C:\etc\localtime is used, and "

ANNOUNCE: DateTime::TimeZone 0.6101

2007-02-18 Thread Dave Rolsky
0.6101 2007-02-18 - Fixes a major bug in 0.61. Passing "local" as a time zone new to DateTime::TimeZone->new() caused a fatal error. 0.61 2007-02-18 - Lots of internal changes in the code used to determine a system's local time zone. - As a result, we now have a much better method f

Re: revision of DT::TZ name parsing

2007-02-18 Thread Dave Rolsky
On Sun, 11 Feb 2007, Zefram wrote: Anything that looks like a System V timezone string is treated as such, via DT::TZ::SystemV. This interpretation overrides some of the zones and links in the Olson database, and a couple that were in DT::TZ only. In each case, of course, the overridden names

ANNOUNCE: DateTime 0.60

2007-02-13 Thread Dave Rolsky
0.60 2007-02-13 - This release is based on version 2007b of the Olson database. For the next release, I'm planning to integrate Zefram's work on handling SysV time zones and direct use of the binary Olson files. -dave /*=== VegGuide.Org

ANNOUNCE: Time::Local 1.17

2007-01-25 Thread Dave Rolsky
1.172007-01-25 - I made the same test count mistake as was in 1.14 again. This release fixes the test count (again) when running on a system that doesn't support negative epochs (like Win32). Patched by Kenichi Ishigaki (again). Sigh. -dave /*

Re: missing something..part 2

2007-01-25 Thread Dave Rolsky
On Thu, 25 Jan 2007, Zefram wrote: Matthew wrote: I see all the Etc/GMT+X inside my /usr/share/zoneinfo/Etc/ so what's up? DateTime::TimeZone doesn't look in /usr/share/zoneinfo. It has its own version of the zoneinfo database, in the form of Perl modules, but it doesn't include the Etc pseu

ANNOUNCE: Time::Local 1.16

2007-01-23 Thread Dave Rolsky
If you upgraded to 1.14 or 1.15 you should probably upgrade to 1.16, since the last two releases are fairly broken. 1.162007-01-23 - The leap year fix in 1.14 was pretty broken, as it checked after converting the year to Perl's internal (year - 1900) format. I hate this (year - 1900) cr

ANNOUNCE: Time::Local 1.14

2007-01-21 Thread Dave Rolsky
1.142007-01-21 - Fixed leap year check to produce the right answer for years outside of the 32-bit epoch range (such as 1900 and 2100). See rt.perl.org #31241. Reported by Nathan Zook. -dave /*=== VegGuide.Orgwww.

ANNOUNCE: DateTime 0.36

2007-01-18 Thread Dave Rolsky
0.36 2007-01-18 [ BUG FIXES ] - For infinity, use 100 ** 1000 instead of 100 ** 100 ** 100. This may fix the problems with infinity on some platforms (or may not). Suggested by Bjorn Tackmann. See RT #17390, #19626, and #22392. - Require DateTime::TimeZone 0.59, which includes a similar

ANNOUNCE: DateTime::TimeZone 0.59

2007-01-18 Thread Dave Rolsky
0.59 2007-01-18 - When trying to find the local timezone for a machine based on /etc/localtime, ignore /usr/share/zoneinfo/posixrules. This fixes a bug seen on FreeBSD 6.2. Reported by . RT #24026. - For infinity, use 100 ** 1000 instead of 100 ** 100 ** 100. This may fix the problems

Re: Request for permission to use DateTime::Tiny

2007-01-13 Thread Dave Rolsky
On Tue, 9 Jan 2007, Adam Kennedy wrote: However, DateTime::Tiny imposes on your namespace, so I'd like your blessing on this. Alternatively, someone suggest an alternative that complies with the rules above. I think you could simply patch DateTime::LazyInit to not require DateTime.pm at co

ANNOUNCE: DateTime::TimeZone 0.58

2007-01-08 Thread Dave Rolsky
0.58 2007-01-08 - This release is based on version 2007a of the Olson database. -dave /*=== VegGuide.Orgwww.BookIRead.com Your guide to all that's veg. My book blog ==

Re: Can't locate object method "era_abbreviation"

2007-01-06 Thread Dave Rolsky
On Sat, 6 Jan 2007, Bill Moseley wrote: On Sat, Jan 06, 2007 at 11:13:34AM -0600, Dave Rolsky wrote: On Sat, 6 Jan 2007, Bill Moseley wrote: I just grabbed latest from CPAN and get: [EMAIL PROTECTED]:~/build/DateTime-0.35$ prove -b t/03components.t t/03componentsok 52/135Can't l

Re: Can't locate object method "era_abbreviation"

2007-01-06 Thread Dave Rolsky
On Sat, 6 Jan 2007, Bill Moseley wrote: I just grabbed latest from CPAN and get: [EMAIL PROTECTED]:~/build/DateTime-0.35$ prove -b t/03components.t t/03componentsok 52/135Can't locate object method "era_abbreviation" via package "DateTime::Locale::en_US" at blib/lib/DateTime.pm line 606.

RE: Indic calendars

2007-01-03 Thread Dave Rolsky
On Wed, 3 Jan 2007, Jaldhar H. Vyas wrote: On Wed, 3 Jan 2007, Dave Rolsky wrote: On Wed, 3 Jan 2007, Jaldhar H. Vyas wrote: > If so, then it might be reasonable to leave only the actual calendar > modules in D::C and place all the other in DateTime::Indic as support > modules.

RE: Indic calendars

2007-01-03 Thread Dave Rolsky
On Wed, 3 Jan 2007, Jaldhar H. Vyas wrote: If so, then it might be reasonable to leave only the actual calendar modules in D::C and place all the other in DateTime::Indic as support modules. I agree. Dave is a new DateTime::Indic namespace ok? There's already some bits in DateTime::Util fo

Re: DateTime::Calendar::Christian::Liturgical

2006-12-08 Thread Dave Rolsky
On Fri, 8 Dec 2006, Thomas Thurman wrote: Well, it's not simply Christian, because not all Christian churches use the traditional calendar: as far as I'm aware, just the liturgical ones (Catholic, Orthodox, Anglican, Lutheran...) do; that's why I called it Liturgical::Christian. Heh, like I ha

RE: DateTime::Calendar::Christian::Liturgical

2006-12-08 Thread Dave Rolsky
On Fri, 8 Dec 2006, Jim Bacon wrote: I'm still a newbie to the group, but I would reverse the last two naming elements, yielding the following: DateTime::Calendar::Liturgical::Christian This seems fine, as does DT::C::Christian::Liturgical. Either way is clear enough. The real question is

ANNOUNCE: DateTime::TimeZone 0.57

2006-11-27 Thread Dave Rolsky
0.57 2006-11-27 - This release is based on version 2006p of the Olson database. -dave /*=== VegGuide.Orgwww.BookIRead.com Your guide to all that's veg. My book blog ==

ANNOUNCE: DateTime::TimeZone 0.56

2006-11-16 Thread Dave Rolsky
0.56 2006-11-16 - Really fix the sorting of names_in_country(). Patch by Tatsuhiko Miyagawa. - Allow names like "JST-9" and "GMT+0" in $ENV{TZ} when trying to find the local time zone. Reported by Tatsuhiko Miyagawa. -dave /*=== VegGuide

Re: Academic DateTime modules

2006-11-11 Thread Dave Rolsky
On Sat, 11 Nov 2006, Tim Retout wrote: I'm in the process of writing [0]some DateTime modules to handle the academic calendar used at my [1]university. [0] http://svn.wuglug.org.uk/repos/warwickdate/perl/ [1] http://www.warwick.ac.uk/ I split them up into one that calculated the start of a giv

ANNOUNCE: DateTime::TimeZone 0.55

2006-11-06 Thread Dave Rolsky
0.55 2006-11-06 - This release is based on version 2006o of the Olson database. -dave /*=== VegGuide.Orgwww.BookIRead.com Your guide to all that's veg. My book blog ==

Re: simple calculation frustrations

2006-11-04 Thread Dave Rolsky
On Fri, 3 Nov 2006, Zefram wrote: Dave Rolsky wrote: Pretty much all DBMS's (ok, not SQLite) have support for datetime as a data type. Worms. Can thereof. A datetime type is not a primary feature of a DBMS, so it's probably not had much attention paid to it. Until recentl

Re: simple calculation frustrations

2006-11-03 Thread Dave Rolsky
On Fri, 3 Nov 2006, Zefram wrote: OK, so you want the other behaviour. I suggest that instead of storing an actual timestamp you should store a broken-down time: week number, day of week, local time of day, and (most important) timezone rule. You can put those together in DateTime to find out w

Re: simple calculation frustrations

2006-11-02 Thread Dave Rolsky
On Thu, 2 Nov 2006, Matthew wrote: I tried to do so. The problem is that the date's are stored in the users local timezone and we only store the offset from GMT. (ex: -6 or 7) Well, there's your problem right there. You realy can't do this and expect it to work, as you're finding out. You ne

Re: DateTime::Natural::Parse and the DateTime namespace

2006-10-27 Thread Dave Rolsky
On Wed, 25 Oct 2006, Steven Schubiger wrote: ->parse_datetime($string) ->parse_datetime( string => $string, debug => 1 ); Did both of it. But shouldn't we provide the options hash to new() instead? Well, that depends on whether the module really needs a constructor. At present, having

Re: Install errors in DateTime::Locale

2006-10-25 Thread Dave Rolsky
On Sun, 22 Oct 2006, Barry Moore wrote: t/01basicok 5/7101Can't locate object method "catfile" via package "File::Spec" (perhaps you forgot to load "File::Spec"?) at t/01basic.t line 52. There is in fact no use File::Spec in that test script, so when I add that I fix that error,

Re: ANN: DateTime::Span::Birth

2006-10-25 Thread Dave Rolsky
On Thu, 26 Oct 2006, Tatsuhiko Miyagawa wrote: DateTime::Span::Birth 0.01 is now going to CPAN. A nit on the name. With just "birth", it seems like it might be related to predicting the birth of a baby, something like generating a span of dates in which the birth is expected. I think it migh

Re: DateTime::Natural::Parse and the DateTime namespace

2006-10-25 Thread Dave Rolsky
On Tue, 24 Oct 2006, Steven Schubiger wrote: If this were to go under DateTime, I'd probably want to have be something like DateTime::Format::Natural::EN or something like that, since it's quite possible people will want parsers for other languages as well. I'd also want it to have an interface

ANNOUNCE: DateTime::TimeZone 0.54

2006-10-24 Thread Dave Rolsky
0.54 2006-10-25 - Got rid of the STORABLE_attach methods. This was causing bugs when trying to freeze/thaw a DateTime.pm object, and I realized that because of how the DT::TimeZone internals work, there's not much gained by using STORABLE_attach instead of STORABLE_freeze. Even with S

ANNOUNCE: DateTime::TimeZone 0.53

2006-10-24 Thread Dave Rolsky
0.53 2006-10-24 - Freezing and thawing a DT::TimeZone::OffsetOnly object was broken in 0.52 (and probably earlier versions as well). Reported by Tatsuhiko Miyagawa. - Freezing and thawing a DT::TimeZone::Floating object was also broken. -dave /*===

ANNOUNCE: DateTime::Locale 0.3101

2006-10-23 Thread Dave Rolsky
0.3101 2006-10-23 - Fixed a test failure when DateTime::Locale is installed on a system where DateTime.pm has never been installed. - Fixed a test failure in bleadperl. RT Ticket #22515. Reported by Steve Peters. -dave /*=== VegGuide.Org

ANNOUNCE: DateTime::TimeZone 0.52

2006-10-22 Thread Dave Rolsky
0.52 2006-10-22 - The names_in_country() method no longer sorts the zone names. Instead, it returns them in order from most- to least-populated. - Added a STORABLE_attach method for integration with newer versions of Storable which provide better support for singletons. - Made offset_

Re: DateTime::TimeZone::FromCountry

2006-10-22 Thread Dave Rolsky
On Sat, 14 Oct 2006, Tatsuhiko Miyagawa wrote: On 10/14/06, Dave Rolsky <[EMAIL PROTECTED]> wrote: This is in 0.51. It's a bit different from what you wrote. The biggest difference is that you can only get the zones by country code. I didn't want to add a dependency on Locale

ANNOUNCE: DateTime 0.35

2006-10-22 Thread Dave Rolsky
0.35 2006-10-22 [ ENHANCEMENTS ] - Added several new methods for getting locale-based data, era_abbr(), era_name(), quarter_abbr(), and quarter_name(). The era() method returns the same data as era_abbr(), but is deprecated. -dave /*=== V

ANNOUNCE: DateTime::Locale 0.30

2006-10-22 Thread Dave Rolsky
I tested this release with the latest DateTime.pm and it still works, which is good. I'll be releasing a new DT.pm soon which takes advantage of the new data in this version, like era names, quarter name/abbr, etc. 0.30 2006-10-22 - Now using the CLDR data instead of ICU. This isn't a big ch

ANNOUNCE: DateTime::Locale 0.31

2006-10-22 Thread Dave Rolsky
Well, that was quick. I went to work on DT.pm 0.35 and realized that I needed some more methods in DT::Locale. DT.pm 0.34 and earlier should work fine with DT::Locale 0.30, but DT.pm 0.35 will require this new version of DT::Locale. 0.31 2006-10-22 - Added era_name() and era_abbreviation(

Re: DateTime::TimeZone::FromCountry

2006-10-22 Thread Dave Rolsky
On Mon, 16 Oct 2006, David Cantrell wrote: This is in 0.51. It's a bit different from what you wrote. The biggest difference is that you can only get the zones by country code. I didn't want to add a dependency on Locale::Country, but I did mention it in the docs. So make it an optional modu

Re: DateTime::TimeZone tests hang on OSX?

2006-10-14 Thread Dave Rolsky
On Sat, 14 Oct 2006, Randal L. Schwartz wrote: For the last "n" versions of DateTime::TimeZone (sorry, don't recall where it started), I've gotten a CPU-bound huge pause right after... ok 1545 - The object isa DateTime::TimeZone ok 1546 - name should be UTC ok 1547 - should not be flo

Re: redistribution

2006-10-13 Thread Dave Rolsky
On Fri, 13 Oct 2006, Alex Teslik wrote: - CPAN says the project is Pure-Perl, which is great. I would like to throw it That's somewhat out-of-date. DateTime.pm ships with both XS and pure Perl implementations of some pieces. The XS bits are faster, but if you don't have a compiler it doesn't

Re: DateTime::TimeZone::FromCountry

2006-10-13 Thread Dave Rolsky
On Sat, 14 Oct 2006, Tatsuhiko Miyagawa wrote: I'll take a look at the tarball and integrate it into the DT::TZ. I'll probably change the package name so it's just part of DT::TZ, which already has a bunch of functions for getting lists of time zones. Sounds great. Thanks! This is in 0.51. I

ANNOUNCE: DateTime::TimeZone 0.51

2006-10-13 Thread Dave Rolsky
No new Olson data in this one ... 0.51 2006-10-13 - Added two new catalog-related functions, countries() and names_in_country(). Using these functions allows you to map ISO3066 country codes to the time zones used in that country. Based on code by Tatsuhiko Miyagawa. -dave /*==

Re: DateTime::TimeZone::FromCountry

2006-10-13 Thread Dave Rolsky
On Fri, 13 Oct 2006, Tatsuhiko Miyagawa wrote: the actual mapping data (from country to available timezones) is created using 'zone.tab' file in the Olson database. Dave: Do you think it's OK to upload this module to CPAN? Or, should it be part of DateTime::TimeZone module itself? Given that

ANNOUNCE: DateTime::TimeZone 0.50

2006-10-10 Thread Dave Rolsky
0.50 2006-10-10 - This release is based on version 2006n of the Olson database. -dave /*=== VegGuide.Orgwww.BookIRead.com Your guide to all that's veg. My book blog ==

Re: [use Perl] New Journal Entry by Alias, "Request for Volunteers: DateTime::Cron::Simple Replacement"

2006-09-29 Thread Dave Rolsky
On Fri, 29 Sep 2006, Adriano Ferreira wrote: use DateTime::Cron::Simple; my $c = DateTime::Cron::Simple->new($cron); print "ok" if $c->validate_time($dt); # $dt is a DateTime object or DateTime->now by default There is also "$c->new_cron($cron)" to change the cron entry represented

Re: [use Perl] New Journal Entry by Alias, "Request for Volunteers: DateTime::Cron::Simple Replacement"

2006-09-29 Thread Dave Rolsky
On Fri, 29 Sep 2006, José Parrella wrote: I'm the one that made the original complaint about DT::Cron::Simple representing the Venezuelan Patents Office. I've finished writing an API-compatible module, named DT::Cron::Parser [1]. I reduced the number of lines of code and contemplated the ability

Re: [use Perl] New Journal Entry by Alias, "Request for Volunteers: DateTime::Cron::Simple Replacement"

2006-09-29 Thread Dave Rolsky
On Fri, 29 Sep 2006, Adriano Ferreira wrote: I am offering myself as a volunteer to rewrite DateTime::Cron::Simple as requested by Adam Kennedy. If there is no objection, I am starting to code and will return with something as soon as possible. The reference will be the API described in the POD

Looking for a new job

2006-09-20 Thread Dave Rolsky
Hello, datetimers, That time has come in my life where I'm in the market for a new job. I'm mostly interested in a full time position, though a suitably fascinating, well-paying, and long-term contract is something I'd consider as well. I live in Minneapolis and I'm not looking to move, but I

ANNOUNCE: DateTime::TimeZone 0.48 (again)

2006-09-18 Thread Dave Rolsky
I announced this before but forgot to upload it, so here's a new announcement, and I already uploaded it. 0.48 2006-09-18 - This release is based on version 2006l of the Olson database. - Fix finding of local time zone when there is a $SIG{__DIE__} handler in effect. The handler broke th

ANNOUNCE: DateTime::TimeZone 0.48

2006-09-17 Thread Dave Rolsky
0.48 - Fix finding of local time zone when there is a $SIG{__DIE__} handler in effect. The handler broke the internal use of exceptions in one of DateTime::TimeZone::Local's methods. Reported by JD Hedden. RT #20982. -dave /*=== VegGuide.O

Re: Module DateTime::Cron::Simple has no license

2006-09-15 Thread Dave Rolsky
On Thu, 14 Sep 2006, Ernesto Hernández-Novich wrote: Several months ago I started packaging DateTime::Cron::Simple for Debian GNU/Linux as part of the process of packaging dependencies for a large perl-based CMS. At the time, I noted that DateTime::Cron::Simple does not have a license and contac

RE: Getting number of days between two dates using DateTime.pm

2006-09-08 Thread Dave Rolsky
On Fri, 8 Sep 2006, Loo, Peter # PHX wrote: I tried using DateTime.pm, however, it was costing me about 11 seconds for every 5,000 rows so I ended up using Time::Local and the localtime that came with Perl. Here is my sample code: If by rows your mean from a DBMS, you'd probably get the best

ANNOUNCE: DateTime TimeZone 0.48

2006-08-29 Thread Dave Rolsky
0.48 2006-08-29 - This release is based on version 2006k of the Olson database. -dave /*=== VegGuide.Orgwww.BookIRead.com Your guide to all that's veg. My book blog ===

Re: month_name() returns UTF-8 or Latin-1?

2006-08-27 Thread Dave Rolsky
On Mon, 28 Aug 2006, Kawasaki Yusuke wrote: Hello from Japan. Hello from Taiwan (at least for the next few days). I think the month_name() method returns a string encoded in UTF-8. However, it seems to be encoded in Latin-1 when locale => "fr". This is an expected behavior? my $fr = DateTim

ANNOUNCE: DateTime::TimeZone 0.47

2006-08-21 Thread Dave Rolsky
Apparently, I'd already released 0.46 from another machine but never checked in that change to the distro. Brilliant is me! So this is the same as the 0.46 I just announced, but with the right version. 0.47 2006-08-22 - This release is based on version 2006j of the Olson database. - Ad

ANNOUNCE: DateTime::TimeZone 0.46

2006-08-21 Thread Dave Rolsky
0.46 2006-08-21 - This release is based on version 2006j of the Olson database. - Added a link to Asia/Tokyo for the "JST-9" timezone. According to Kenichi Ishigaki this is a TZ env var setting in Japan. - Some links in the Olson data pointed to other links, or pointed to non-existent z

Re: DST in Time::Local

2006-08-12 Thread Dave Rolsky
On Sat, 12 Aug 2006, Alfuken wrote: Is it possible to disable DST check in timelocal() and timegm() functions? I mean, when in "Date and Time settings" on computer (Windows) GMT offset is set to +02:00 and DST is on, difference (in seconds) between timelocal() and timegm() is +10800 (3 hours)

Re: Can't locate loadable object for module DateTime

2006-08-11 Thread Dave Rolsky
On Fri, 11 Aug 2006, Brendan Gibson wrote: I am trying to use the DateTime module in a perl script, but I don't think that I have been able to install it correctly. I first tried perl -MCPAN -e 'install DateTime' which failed on a few dependencies like Module::Build, so I went about installing

<    1   2   3   4   5   6   7   8   9   10   >