Sorry, I should also have added to take a look at
ActiveSupport::CoreExtensions::Numeric::Time, which allows something
like 1.week.from_now, 1.week.ago, etc.

On Sep 19, 6:32 pm, pepe <[email protected]> wrote:
> For the holidays you are going to need to store them somewhere as was
> already pointed out in another post since they might even vary by
> company. Calculating the weekend days should be easy using the
> extended functionality for dates that Rails offers. You can check the
> ActiveSupport::CoreExtensions::DateTime::* and
> ActiveSupport::CoreExtensions::Date* modules for that.
>
> Good luck.
>
> On Sep 18, 2:17 pm, Penelope West <[email protected]>
> wrote:
>
> > I want calculate the number of business day for the current month, but I
> > don't know how I skip the holidays and weekends.
>
> > Could anyone help me with this?
>
> > Thanks
> > --
> > Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to