« RubyNation is a Wrap | Main | Massachusetts Data Security Law and Your Website »

April 26, 2010

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a01156fc2ebf9970c013480227280970c

Listed below are links to weblogs that reference Introducing business_time:

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Eric Anderson

Awesome library. Have had this need myself and always just hacked the calculations more manually. Having a general purpose library is much nicer.

Nils Jonsson

I can't help thinking of the Flight of the Conchords song "Business Time." http://www.youtube.com/watch?v=WGOohBytKTU

praful

1. Are the first and last business days of the month available?

2. How are holidays, eg UK Bank Holidays, specified? Are the automatically fetched from a location or do I have to specifiy them?

Thanks

Praful

Stephan Wehner

That is pretty good. Congratulations. Do you have a boolean, like

t = Time.now
t.open_for_business?
t.closed_for_business?

Also, in the long run, I think you would really want several "business_hour configurations". So you can support different offices in different locations.

Stephan

NG

Is there a method to compute the number of business days between two dates?

The comments to this entry are closed.