My favorites | Sign in
Project Logo
                
Feeds:
People details
Project owners:
  maurice.aubrey

Twelve Hour Time (12_hour_time) Rails Plugin

This view plugin adds AM/PM (12 hour time) support to the core DateHelper methods.

EXAMPLES

  <%= select_time Time.now, :twelve_hour => true %>

  <%= time_select 'event', 'time', { :twelve_hour => true } %>

  <% form_for :user do |f| %>
     <%= f.datetime_select :created_at, :twelve_hour => true %>
  <% end %>

INSTALLATION

Support for Rails 2.2 has just been added (Dec. 6) but hasn't been well tested yet. Please let me know if you see problems.

script/plugin install http://rails-twelve-hour-time-plugin.googlecode.com/svn/branches/stable-2.2/12_hour_time
script/plugin install http://rails-twelve-hour-time-plugin.googlecode.com/svn/branches/stable-2.1/12_hour_time
script/plugin install http://rails-twelve-hour-time-plugin.googlecode.com/svn/branches/stable-2.0/12_hour_time
script/plugin install http://rails-twelve-hour-time-plugin.googlecode.com/svn/trunk/12_hour_time

AUTHORS

The is a fork of the original code by Nick.








Hosted by Google Code