Re: [Kinda OT] Could somebody double check this?

2003-10-13 Thread Daisuke Maki
Okay, so now I've done a bit of tweaking to my solar longitude calculations, and I'm now off 0.99 degrees on average from Calendrical Calculations book (And you'll also notice an overflow problem somewhere in the middle) [EMAIL PROTECTED] lib]$ perl test.pl Gergorian Date | R.D | Sol

RE: [Kinda OT] Could somebody double check this?

2003-10-13 Thread Hill, Ronald
Hi Maki, [snipped] [Ronald Hill Wrote] > > This is correct, there was talk of doing this however, it > > is not easy. The last I heard, there was work on getting > > the SLA library released under the LGPL. > > (hopefully this will include a windows port of the library) > > This library has

Re: "Calculate down time"

2003-10-13 Thread Flavio S. Glock
The right answer is "use DateTime::Business::xxx" Now how about: sub no_holiday { return $_[0] unless ... # lookup holidays return undef; } my $prime_set = DateTime::SpanSet->from_set_and_duration( set => DT::E::Recurrence->weekly( days => [1..5], hours => 8 )->iterate(

Re: "Calculate down time"

2003-10-13 Thread Ben Bennett
Why do you hate me :-) I have no idea how to handle this easily... is a bunch of sets the right answer? Seems gross. -ben On Mon, Oct 13, 2003 at 01:00:09PM -0300, Flavio S. Glock wrote: > How about a question for the FAQ? > > http://perlmonks.org/index.pl?node_id=298788 > > > > Calcula

Re: "Calculate down time"

2003-10-13 Thread Dave Rolsky
On Mon, 13 Oct 2003, Flavio S. Glock wrote: > How about a question for the FAQ? > > http://perlmonks.org/index.pl?node_id=298788 > > > > Calculate down time of devices in prime time (only working hours, excluding > > p_holidays) > > by albertc on Oct 13, 2003 at 05:00 GMT+3 > > > > I have up & d

"Calculate down time"

2003-10-13 Thread Flavio S. Glock
How about a question for the FAQ? http://perlmonks.org/index.pl?node_id=298788 > > Calculate down time of devices in prime time (only working hours, excluding > p_holidays) > by albertc on Oct 13, 2003 at 05:00 GMT+3 > > I have up & down datetime data for devices, I need a function that will pro

RE: [Kinda OT] Could somebody double check this?

2003-10-13 Thread Hill, Ronald
Hi Maki, > > Hi, dt-ers. > > I've been lurking on this list for some time now, and so far I > understand that while a few people have attempted, nobody has come up > with a lunar, solar, or lunisolar calenders (at least I don't remember > seeing it on this list). This is correct, there was tal

Re: SpanSet Issues and Requests

2003-10-13 Thread Flavio S. Glock
Rick Measham wrote: > > I'm trying to get next/previous spans from a given DateTime. I'm > defining next/previous as the event who started before or after $dt. > Where it ends doesn't matter, even if we're still in the middle of the > event. Rick: Did you get it working? I'm starting the imple