RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

A nice way of writing Time objects in Ruby - am/pm methods

A handy gem for creating Time objects with syntax like:

1.am
4.pm
1230.pm
1315.to_time

http://ninjasandrobots.com/theampm

Comments

Post a Comment

Comment abilities for non registered users are currently deactivated, pending time to add a proper CAPTCHA to solve the escalating spam problem. Sorry!