Re: RFC: API for DateTime::Business:Week

2003-10-03 Thread Rick Measham
Flavio S. Glock wrote: About the API: when you said It could then be extended ... you mean another module, right? I think you are defining a lot of functionality, beyond ::Week. - Flavio S. Glock Yup, that's true. So what do we have? DateTime::Business::Week Define a week as an

Re: RFC: API for DateTime::Business:Week (was Re: Time Delta)

2003-10-03 Thread Dave Rolsky
On Thu, 2 Oct 2003, RIck Measham wrote: $working_hours = new DateTime::Business::Week( days = [1 .. 5], start = {hour = 9, minute = 0}, end = {hour = 17, minute = 30} ); and, for those with more complex weeks: $working_hours = new DateTime::Business::Week(

Re: RFC: API for DateTime::Business:Week (was Re: Time Delta)

2003-10-03 Thread Bruce Van Allen
On 2003-10-03 Dave Rolsky wrote: I see us needing a couple things: - Recording the fact that certain days are special non-work days. This includes both public holidays, company holidays, one shot things like fumigating the building, etc. We not only want to record when these are, but their

RFC: API for DateTime::Business:Week (was Re: Time Delta)

2003-10-02 Thread RIck Measham
Scott asked: * Here is DateTime 1 * Here is DateTime 2 * Here is the working week (Mon-Fri, 9-5) (or whatever we define) * Tell me the working hours between DateTime 1 and DateTime 2 Rick Measham wrote: G'day DateTimers, Any clues on why the intersections don't create properly? Flavio S.