Re: RFC: DateTime::Set as_list()

2003-04-02 Thread Dave Rolsky
On Wed, 2 Apr 2003, Flavio S. Glock wrote: > Dave, is this syntax ok? > > @datetimes = $set->as_list( span => $this_year ); > > - "span" is optional, if the set is bounded. > - otherwise, the program dies. Hmm ... what exactly is span? A DateTime::Span? If not, I don't think we should use th

Re: [ANNOUNCE] DateTime-Calendar-Japanese 0.01 and DateTime-Forma t-Japanese 0.01

2003-04-02 Thread Dave Rolsky
On Wed, 2 Apr 2003, Flavio S. Glock wrote: > +1 it makes the program simpler > +1 we can implement "as_list" in the DT::Set module if people find it > useful. > -1 However, it forces people to install DT::Set. > > +1 :) I think DT::Set will be needed by so many different other DateTime m

Re: DT::Calendar::Mayan::* ?

2003-04-02 Thread Joshua Hoblitt
> > I got a copy of Calendrical Calculations yesterday and have just about > > finished the Mayan/Long count calendar. Should the Haab and Tzolkin > > calendars be in the same module (ick!) > > I'd think so. You can't really have a separate Haab calendar, as a Haab > date contains only "month" and

RFC: DateTime::Set as_list()

2003-04-02 Thread Flavio S. Glock
Dave, is this syntax ok? @datetimes = $set->as_list( span => $this_year ); - "span" is optional, if the set is bounded. - otherwise, the program dies. Hill, Ronald wrote: > > +1 we can implement "as_list" in the DT::Set module if people find it > > useful. > > yes! > I for one think this wo

RE: [ANNOUNCE] DateTime-Calendar-Japanese 0.01 and DateTime-Forma t-Japanese 0.01

2003-04-02 Thread Hill, Ronald
[snipped] > > >Hill, Ronald wrote: > > I have just completed some documentation on the sunrise module > > and I still have the as_list method (which does not work > >correctly). I was going to remove this > > since we have the sunrise_as_set & sunset_as_set methodes > >which does the same thing

Re: [ANNOUNCE] DateTime-Calendar-Japanese 0.01 and DateTime-Forma t-Japanese 0.01

2003-04-02 Thread Flavio S. Glock
Hill, Ronald wrote: > I have just completed some documentation on the sunrise module > and I still have the as_list method (which does not work correctly). I was > going to remove this > since we have the sunrise_as_set & sunset_as_set methodes which does the > same thing. I agree. +1 it makes

RE: [ANNOUNCE] DateTime-Calendar-Japanese 0.01 and DateTime-Forma t-Japanese 0.01

2003-04-02 Thread Hill, Ronald
Hi Flavio, > > Daisuke Maki wrote: > > Then I realized that that was dependent on the time of sunrise and > > sundown, so I took my half-assed implementation out of that > module. If > > you know how that could be done, that would be cool. > > DateTime::Event::Sunrise is already usable. It can

Re: [ANNOUNCE] DateTime-Calendar-Japanese 0.01 and DateTime-Format-Japanese 0.01

2003-04-02 Thread Flavio S. Glock
Daisuke Maki wrote: > Then I realized that that was dependent on the time of sunrise and > sundown, so I took my half-assed implementation out of that module. If > you know how that could be done, that would be cool. DateTime::Event::Sunrise is already usable. It can give you the time of sunrise a

Re: [ANNOUNCE] DateTime-Calendar-Japanese 0.01 and DateTime-Format-Japanese 0.01

2003-04-02 Thread Daisuke Maki
Since I now know you're in this list as well, here's something I could use some input ;) Originally, I was going to make DT::Format::Japanese be able to return values in the "Eto" format, like 3:00 am being "Ushi-Mitsu-doki". Then I realized that that was dependent on the time of sunrise and s

Re: RFC DateTime::Calendar::French_Rev

2003-04-02 Thread Eugene van der Pijll
Dave Rolsky schreef: > On Wed, 2 Apr 2003, Jean Forget wrote: > > For the moment, there are two sets of accessors: > > - hour, min, second, etc for sexagesimal time > > - dhour, dmin and dsecond for decimal time IMHO, this is the way to go. > > but strftime knows only decimal time. I think it sh

Re: DT::Calendar::Mayan::* ?

2003-04-02 Thread Eugene van der Pijll
Joshua Hoblitt schreef: > I got a copy of Calendrical Calculations yesterday and have just about > finished the Mayan/Long count calendar. Should the Haab and Tzolkin > calendars be in the same module (ick!) I'd think so. You can't really have a separate Haab calendar, as a Haab date contains onl

Re: [ANNOUNCE] DateTime-Calendar-Japanese 0.01 and DateTime-Format-Japanese 0.01

2003-04-02 Thread Daisuke Maki
Well, what you made works, but I think it's somewhat missing the point. Yeah, I had that nagging feeling all along ;) good thing you took a look. But your object does not actually represent the Japanese calendar. What I'm getting at is that given a DateTime::Calendar::Japanese object, I'd expect

Re: RFC: API changes

2003-04-02 Thread Dave Rolsky
On Wed, 2 Apr 2003, Flavio S. Glock wrote: > Some random thoughts (not necessarily my opinions): > > - we'd rather have Right than Stable. For now, at least, yes. Later, no. For example, I'd consider the DateTime.pm API pretty stable at this point, since other people are already using it for th

RFC: API changes

2003-04-02 Thread Flavio S. Glock
I need some guidelines regarding how to deal with API changes (such as removing the "new" method). I think those guidelines should become part of the "development-standards". Some random thoughts (not necessarily my opinions): - we'd rather have Right than Stable. - people _know_ the modules ar

Re: DateTime and Holidays

2003-04-02 Thread Flavio S. Glock
Brad Hughes wrote: > But DT::Calendar::X now means the *form* of date calendar X, not the set of > days themselves and other information about that set of days that make up a > calendar, like start time and end time for the NYSE calendar (yes, potentially > different for different days). I think

Re: DateTime and Holidays

2003-04-02 Thread Flavio S. Glock
> On Tue, 1 Apr 2003, Flavio S. Glock wrote: > > It looks like a work for "DateTime::Event::Builder" What about a DateTime::Event::ICal module? There is some code in Date::Set we could use... - Flavio S. Glock

Re: DateTime and Holidays

2003-04-02 Thread Brad Hughes
Dave Rolsky wrote: On Tue, 1 Apr 2003, Jonathan Leffler wrote: [...] Nomenclature is important, isn't it? Oh yes. It's one of my obsessions, as some on this list may have already guessed. One of them most important (perhaps #1) aspects of code design is proper naming. This applies to both interna

Re: [ANNOUNCE] DateTime-Calendar-Japanese 0.01 and DateTime-Format-Japanese 0.01

2003-04-02 Thread Tatsuhiko Miyagawa
At Tue, 01 Apr 2003 17:31:06 -0800, Daisuke Maki wrote: > > I've hacked together DT::Calendar::Japanese and DT::Format::Japanese. Is > there anybody on this list that can use Japanese on his machine? Here, here ;-) I'd love to look into these modules in this weekend, hopefully. > Features: >

Re: [ANNOUNCE] DateTime-Calendar-Japanese 0.01 and DateTime-Format-Japanese 0.01

2003-04-02 Thread Dave Rolsky
On Tue, 1 Apr 2003, Daisuke Maki wrote: > DT::Format::Japanese: > - support kanji, zenkaku arabic, and ascii arabic numbers > - support eras BTW, this one looks great. -dave /*=== House Absolute Consulting www.houseabsolute.com ===*/

Re: [ANNOUNCE] DateTime-Calendar-Japanese 0.01 and DateTime-Format-Japanese 0.01

2003-04-02 Thread Dave Rolsky
On Tue, 1 Apr 2003, Daisuke Maki wrote: > I've hacked together DT::Calendar::Japanese and DT::Format::Japanese. Is > there anybody on this list that can use Japanese on his machine? I somehow got emacs to do so, yes. If it's working and displaying the right characters, then my pathetic character