isn’t that more confusing? Shouldn’t it be the other way around so it’s easier to remember?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
looking at this cheat sheet: http://cheat.errtheblog.com/s/strftime/
It seems that Ruby 1.8 didn’t have the %P option before, so I think that when the community chose to add that “feature” in, they chose to use %p for backwards compatibility and added the %P option for users who wanted the lowercase version.
Still, it wouldn’t have hurt if they were interchanged to avoid confusion.