#537: Missing Time#strftime formatter: "%P" -------------------------------+-------------------------------------------- Reporter: bbu...@… | Owner: lsansone...@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: -------------------------------+-------------------------------------------- I use the command line [http://sup.rubyforge.org/ sup] email program which is written in ruby. While I don't run it under MacRuby, I was checking an issue which came up on the mailing list about the "%P" formatter for strftime and tested it in MacRuby too. The "%P" should output either "am" or "pm" in lower case.
Apparently most (all?) 1.8.7 rubys on OS X, don't support the "%P" formatting, which is not required. Most linux 1.8.7 rubys do support it though. MacRuby also does not support it. However it is required for 1.9. The ruby docs for Time list it for example: http://ruby-doc.org/core-1.9/classes/Time.html#M000314 Here's an example: {{{ $ macruby --version MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64] $ macruby -e 'puts Time.now().strftime("%l:%M%P")' 11:25P }}} That should output "11:25pm" I didn't check any of the other format strings. -- Ticket URL: <http://www.macruby.org/trac/ticket/537> MacRuby <http://macruby.org/> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel