We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b920253 + f4f2b50 commit e432915Copy full SHA for e432915
README.rdoc
@@ -61,6 +61,11 @@ We can adjust the start and end time of our business hours
61
BusinessTime::Config.beginning_of_workday = "8:30 am"
62
BusinessTime::Config.end_of_workday = "5:30 pm"
63
64
+Or we can temporarily override the configured values
65
+ BusinessTime::Config.with(beginning_of_workday: "8 am", end_of_workday: "6 pm") do
66
+ 1.business_hour.from_now
67
+ end
68
+
69
and we can add holidays that don't count as business days
70
July 5 in 2010 is a monday that the U.S. takes off because our independence day falls on that Sunday.
71
three_day_weekend = Date.parse("July 5th, 2010")
0 commit comments