Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是新来的ROR,我想编写一个函数,我将传递给该函数,它将使用rails 中的 gemmonth返回total working days该特定月份的(周六和周日除外)business_time
ROR
month
total working days
business_time
尝试(未测试):
first_day = Date.parse("September 30, 2012") last_day = Date.parse("November 1, 2012") first_day.business_days_until(last_day)