Re: Re: Strptime issues

2003-11-06 Thread rickmeasham
> Flavio S. Glock <[EMAIL PROTECTED]> wrote: > > How about to extend the 'to_datetime' method, instead of creating a > new > one: > >if ($dti->can_be_datetime) { > $dti = $dti->to_datetime >} > Sounds good .. and it's as simple as using DateTime->today as the base, wh

Re: Re: Strptime issues

2003-11-04 Thread rickmeasham
> Flavio S. Glock <[EMAIL PROTECTED]> wrote: > > sub has { > > I implemented this in CVS with tests, but I believe it > should be 2 separate methods instead. What do you think? I'm cool with two different methods ... it really is two different things. Maybe there's also a need for has_a

Re: Re: Re: Strptime issues

2003-11-04 Thread rickmeasham
> [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > sub has_time { $_[0]->has{'hour', 'minute'} } Maybe should be: sub has_time { return 1 if ($_[0]->has('hour', 'minute') and not $_[0]->has('nanosecond')); return 1 if ($_[0]->has('hour', 'minute', 'second')) return 0 } Whic

Re: Re: Strptime issues

2003-11-04 Thread rickmeasham
[webmail logged me out, so sorry if you get ++ copies] > Flavio S. Glock <[EMAIL PROTECTED]> wrote: > So this is the current list of proposed DT::Incomplete methods that > are > "waiting for votes": > > * epoch > $epoch = $dti->epoch if $dti->can_be_datetime; Sounds go

Re: Re: Strptime issues

2003-11-03 Thread rickmeasham
> David Hood <[EMAIL PROTECTED]> wrote: > Perhaps you should return only the information that is given, in an > iso 8601 > compliant format, so for November 2003 you could simply return > 2003-11. The Nah, that's not going to happen. The entire point of the module is to get a DateTime obj

Re: [RFC] DateTime::Bundle::Minimal and DateTime::Bundle::Basic

2003-10-22 Thread rickmeasham
> Dave Rolsky schreef: > > DateTime, it will tell you that you need these prereqs anyway. Eugene van der Pijll <[EMAIL PROTECTED]> wrote: > The first few versions of Bundle::DateTime left out those prereqs. > As a result, the bundle was difficult to install for the first time: A

Re: Re: FW: DateTime questions...

2003-10-18 Thread rickmeasham
> Matt Wright <[EMAIL PROTECTED]> wrote: > Yes, I noticed this too, but there seemed to be quite a few problems > besides > just the compiler issue. The Makefile came out very screwy as well, > with a > lot of missing single quotes, variables without any = signs after > them, etc.

Re: Re: Olson <-> Microsoft mappings

2003-09-24 Thread rickmeasham
Michael Fair <[EMAIL PROTECTED]> wrote: > For instance, "So what's the time in Ireland?" > Do you use "Europe/Dublin" or "Europe/Belfast"? What's the > difference? > Do you expect the end user to know that Dublin and Belfast are in > Ireland > before they can see the time in Ireland? This is a bi

Re: RE: figuring out the number of sundays in a given year

2003-09-21 Thread rickmeasham
Jerry Wilcox <[EMAIL PROTECTED]> wrote: > I'm not sure about the count in a year, but I frequently need to > determine how many of a given day of the week fall in a given month > of the year, or, more precisely, given that today is Saturday, > September 20, I need to figure out whether today is

ANNOUNCE: DateTime::Event::Easter 1.03

2003-09-19 Thread rickmeasham
Uploaded to CPAN .. on your mirror soon .. 1.03 Sat Sep 20, 2003 +1000 - as_set() now works like a call to DateTime::Set and can accept all arguments that a DateTime::Set->from_recurrence can take. Based on idea and patch from Flavio S. Glock - as_span and as_p

Re: Re: [rfc] HiRes

2003-08-02 Thread rickmeasham
> Dave Rolsky <[EMAIL PROTECTED]> wrote: > I take it back. I thought we'd have now() and hires_now(). I think > having nanosecond at 0 makes sense to most people. Hang on, before we go any further and before code exists can I point out that we should have high_res_now() or now_high_res() or now