Plugins - 12 hour time

StarAdd to favorites

Not all of us are adept at those exotic, 24-hour clocks. So for the rest of us, 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.

http://www.nickm.org/svn/repos/rails/plugins/12_hour_time/

  • Currently 4.7/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Misc. Enhancements

Tags

Comments

Add a comment
Maurice Aubrey 9 Nov 2007

I haven't been able to get in contact with Nick, so I'm forking the code for now.

You can check out my latest version here: http://rails-twelve-hour-time-plugin.googlecode.com/svn/trunk/

mla 8 Nov 2007

All the standard time helpers have a :minute_step option.

firefly 8 Nov 2007

anyone figure out how to show the minutes in 15 min increments?

vince 8 Nov 2007

Thanks Maurice Aubrey: That works perfectly.

Maurice Aubrey 2 Nov 2007

I made a bunch of changes and seems to be working for me now. Give it a try:

http://mla.homeunix.com/files/12hourtime_v2.tgz

foo 14 May 2006

Has anyone used this successfully? Particularly the 'handles the backend' bit - how do you assign the multiple form elements to a (for instance) single 'time' datatype column?

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?