12 hour time plugin

Plugin details

If you need to display the time in your application in 12 hour format here's a simple plugin that tacks on an AM/PM selector to the DateHelper methods. It also handles the backend, so things are properly stored in 24-hour format.

Repositoryhttp://www.nickm.org/svn/repos/rails/plugins/12_hour_time/ Author Nick Muerdter Tags Time LicenseUnknown

Documentation

Install the plugin:
ruby script/plugin install http://www.nickm.org/svn/repos/rails/plugins/12_hour_time/

12 hour time adds select_hour and select_ampm to the DateHelper which allow you to select the time using the 12 hour clock in your view.

select_hour(Datetime.now)



select_ampm(Datetime.now)


Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | Back in time (2 older versions) | Last edited by: scott, about 1 year ago