From: Eric Sherman <hyperbolist@gmail.com>
To: sup-devel <sup-devel@rubyforge.org>
Subject: Re: [sup-devel] [PATCH] fixed am/pm in thread-list-mode for ruby1.8
Date: Thu, 31 Dec 2009 17:10:45 -0500 [thread overview]
Message-ID: <1262297415-sup-6997@changeling.local> (raw)
In-Reply-To: <1262294449-sup-8418@localdomain>
Excerpts from Benoît PIERRE's message of Thu Dec 31 16:27:41 -0500 2009:
> Excerpts from Eric Sherman's message of Thu Dec 31 22:03:40 +0100 2009:
> > Excerpts from William Morgan's message of Thu Dec 31 15:14:50 -0500 2009:
> > > Reformatted excerpts from Eric Sherman's message of 2009-12-31:
> > > > %P in 1.8.7 displays a literal "P" always, whereas %P in 1.9 display am/pm.
> > >
> > > That's not the case for me. I get an am/pm for 1.8.7 patch levels 174
> > > and 72 (the two I have on hand). Unless there's some weird Debian
> > > patching going on.
> > >
> > > Can anyone else confirm?
> >
> > Here's a simple test for others to try:
> >
> > $ ruby --version
> > ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10]
> > $ irb
> > irb(main):001:0> RUBY_VERSION
> > => "1.8.7"
> > irb(main):002:0> Time.now().strftime("%l:%M%P")
> > => " 3:58P"
> > irb(main):003:0> quit
> > $ ruby1.9 --version
> > ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-darwin10]
> > $ irb1.9 irb(main):001:0> RUBY_VERSION
> > => "1.9.1"
> > irb(main):002:0> Time.now().strftime("%l:%M%P")
> > => " 3:58pm"
>
> # ruby --version
> ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux]
> # ruby -e 'puts Time.now().strftime("%l:%M%P")'
> 10:21pm
>
> # ruby1.9 --version
> ruby 1.9.0 (2008-10-04 revision 19669) [x86_64-linux]
> # ruby1.9 -e 'puts Time.now().strftime("%l:%M%P")'
> 10:22pm
>
> That's on Ubuntu Karmic.
Hmm. Maybe this issue only exists on OSX. I'm kind of jealous that linux
rubies get features from the future! I first heard about this AM/PM
behavior from [this][1] sup-talk thread and hadn't noticed it myself until
then.
[1]: http://rubyforge.org/pipermail/sup-talk/2009-December/003599.html
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
next prev parent reply other threads:[~2009-12-31 22:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-31 14:48 Eric Sherman
2009-12-31 19:53 ` William Morgan
2009-12-31 20:03 ` Eric Sherman
2009-12-31 20:14 ` William Morgan
2009-12-31 21:03 ` Eric Sherman
2009-12-31 21:27 ` Benoît PIERRE
2009-12-31 22:10 ` Eric Sherman [this message]
2010-01-01 15:13 ` William Morgan
2010-01-02 5:59 ` Blake Burkhart
2010-01-02 6:13 ` Eric Sherman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1262297415-sup-6997@changeling.local \
--to=hyperbolist@gmail.com \
--cc=sup-devel@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox