From: Stoopidboi Stoopidboi Date: 2007-11-29T15:44:40+09:00 Subject: Time.strftime 12 hour format I'm trying to display a date/time in 12-hour format. According to the Time.strftime API (http://ruby-doc.org/core/classes/Time.html#M000297) the 12-hour hour range is supposed to be [1..12]. Why am I getting "00:13:14 PM" for the time portion when I execute the following line? How should I write so that I'll get "12:13:14 PM" instead? Time.local(2007, 'nov', 27, 12, 13, 14).strftime("%Y-%m-%d %I:%M:%S %p") -- Posted via http://www.ruby-forum.com/.