Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to calculate the "next business day"? #82

Closed
vraravam opened this issue Sep 22, 2016 · 2 comments
Closed

How to calculate the "next business day"? #82

vraravam opened this issue Sep 22, 2016 · 2 comments

Comments

@vraravam
Copy link

vraravam commented Sep 22, 2016

@craiglittle - I was using first_business_day from the business_time gem when using the other gem. Thanks for pointing it out in the other issue. In this one, how can I achieve the same?

@craiglittle
Copy link
Collaborator

Welcome, @vraravam!

If you're looking for a Time object as the result, do the following:

Biz.time(1, :day).after(Time.now)

For a Date object:

Biz.dates.days(1).after(Time.now)

Hope that's helpful!

@craiglittle
Copy link
Collaborator

I'm going to close this issue for now. Please let me know if you have any other questions, though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants