Rails Plugin | SmartMonth

http://github.com/perezd/smartmonth/tree/master

这个插件相当cool,可能有望加入到rails核心代码ActiveSupport里,可以让你处理时间日期更加方便:

>> Month.september(2009).first_tuesday
=> Tue, 01 Sep 2009
>> Month.august(2008).first_saturday
=> Sat, 02 Aug 2008

更多的看这里:

[url]http://derekperez.com/blog/2008/08/my-first-rubyrails-contribution-smartmonth/[/url]

你可能感兴趣的:(职场,Rails,plugin,休闲)