From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: raman Newsgroups: gmane.emacs.devel Subject: Re: fromat-time-string: %p vs %P (feels backward: Date: Mon, 24 Apr 2017 19:58:56 -0700 Message-ID: References: <35497558-d629-1c09-ed5b-b0eb00f59e34@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1493089153 24798 195.159.176.226 (25 Apr 2017 02:59:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 25 Apr 2017 02:59:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 25 04:59:06 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2qgz-0006FZ-Fe for ged-emacs-devel@m.gmane.org; Tue, 25 Apr 2017 04:59:05 +0200 Original-Received: from localhost ([::1]:46814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2qh3-00018b-J6 for ged-emacs-devel@m.gmane.org; Mon, 24 Apr 2017 22:59:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2qgx-00018U-Pr for emacs-devel@gnu.org; Mon, 24 Apr 2017 22:59:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2qgu-0000t7-Pd for emacs-devel@gnu.org; Mon, 24 Apr 2017 22:59:03 -0400 Original-Received: from mail-io0-x233.google.com ([2607:f8b0:4001:c06::233]:34855) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d2qgu-0000sp-JY for emacs-devel@gnu.org; Mon, 24 Apr 2017 22:59:00 -0400 Original-Received: by mail-io0-x233.google.com with SMTP id r16so201235559ioi.2 for ; Mon, 24 Apr 2017 19:59:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=mldr4HIcSDl4iJ1JjFF9s6RXsfTtt0T9CUf6Sg/8ZT4=; b=oP2CGfES0pn02CWRzSLlFTSJlOi55gcGGoM+WMY9SwAi8+MeHfpbb990nBfkYhV34H q8SyLuEGA7klht3Q8wFPuYMYpw3U91bXFW1TigoYaVcGCfczr/s/m9GI1cHpm1q07ZxO DrLfXqq2OqzobIUB2oQ3hjrre/ByjDd3ROiKWRDWUj4Bj4a5M564ndqh7OwKNzog4PzV PU6OTbgHOAOHL+jB0Rwnq4T8M0nUYyq59xgmFLCA7jjJUWPQOj6uZjRv6qkGKdKLxVdY xWosIGoUDX2dQkGFzEuS4Cvp6K/Ls7FXqgKHtg6ETtgxlhc30Nq6WgI85nKfCAmmFkXd 2BqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=mldr4HIcSDl4iJ1JjFF9s6RXsfTtt0T9CUf6Sg/8ZT4=; b=DweWjRLry72nyR7dhXqh3LvuXwFqXwdxwpKVLHD2fds7MA7q1KUQ2b8AEfJlNk464Y 24UoIp08toIVqhUQaxtqnEWkknKAjhc5QrA2Ivnj/YfLsMTde5jlWGkjHF03W8BNZTQQ 00OVSq+WbX22ZVniQ0MgjdfrnSE2QN/tdVjdPTVOC8aSwD89AUWJV7ncbiPVU4gKKlsT AwdvYTGcJBu82aKRypQIBdxFYEZjtABwt85Ozqmhx5BwolJk8yo4Nogn/NzuyV3y6fXB EpY+xJrCqgIdoRUscdhvduDYFbYdBzDJMXC3nRXZOV5Ov0J6Coku6RlsuU/vfF1qaJmH LtRQ== X-Gm-Message-State: AN3rC/4bn/uBPHIcbLi0j/t+Y7klEMeOtm+Irtk816cu7FGvddZS1nmx Y21+mA4goJQZ+UTfD2S2Pw== X-Received: by 10.107.142.201 with SMTP id q192mr10742310iod.138.1493089139529; Mon, 24 Apr 2017 19:58:59 -0700 (PDT) Original-Received: from raman-glaptop2 (c-73-170-121-60.hsd1.ca.comcast.net. [73.170.121.60]) by smtp.gmail.com with ESMTPSA id r145sm8938022ior.24.2017.04.24.19.58.58 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 24 Apr 2017 19:58:58 -0700 (PDT) In-Reply-To: <35497558-d629-1c09-ed5b-b0eb00f59e34@cs.ucla.edu> (Paul Eggert's message of "Mon, 24 Apr 2017 18:31:12 -0700") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214279 Archived-At: Paul Eggert writes: Interesting. I later realized that the documentation for format-time-string only specifies the lower case version i.e. %p. > On 04/24/2017 05:11 PM, raman wrote: >> In the argument to format-time-string, %p produces am/pm in upper-case, >> whereas %P produces lower-case. > > It's awkward, but it's consistent with how glibc strftime works. For > what it's worth, POSIX specifies %p to output upper-case in the C > locale, and users likely expect that behavior. > --