My favorites | Sign in
Project Home Wiki Issues Source
Project Information
Members

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

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

AUTHORS

  • Nick Muerdter (original code)
  • Maurice Aubrey
The is a fork of the original code by Nick.
Powered by Google Project Hosting