From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.devel Subject: Re: Time string format Date: Sat, 20 Nov 2010 03:49:24 +0100 Message-ID: References: <83k4k9b1f9.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1290221406 20276 80.91.229.12 (20 Nov 2010 02:50:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 20 Nov 2010 02:50:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 20 03:50:02 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PJdWb-0002g6-SV for ged-emacs-devel@m.gmane.org; Sat, 20 Nov 2010 03:50:02 +0100 Original-Received: from localhost ([127.0.0.1]:33686 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJdWb-0006TF-8J for ged-emacs-devel@m.gmane.org; Fri, 19 Nov 2010 21:50:01 -0500 Original-Received: from [140.186.70.92] (port=57499 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJdWX-0006T9-Hk for emacs-devel@gnu.org; Fri, 19 Nov 2010 21:49:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PJdWW-0002Eq-Gp for emacs-devel@gnu.org; Fri, 19 Nov 2010 21:49:57 -0500 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:51472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PJdWW-0002Ek-Df; Fri, 19 Nov 2010 21:49:56 -0500 Original-Received: by iwn33 with SMTP id 33so659915iwn.0 for ; Fri, 19 Nov 2010 18:49:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=1Pu0njv9XUNkzr+RX0rENUM2wjQuTsmh3P1LguUPRl8=; b=hvw12cDRAV9d/2EcFlLcZP2GR8oAS5XoUp6rHTuDt14bQBYL/hiTFZB6gwOvioHv9M edEvBKncb3MizyPOtqzWDiiPYVICQvXMq/0qjxZUn9coWSwW2Hd2IM5Bxm2Ijpjv4Y1c 1wyrmUbYgTK7gIAti1UNnauwOUjumLERS62no= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=QnNvA6b6J7/bUcyzrF/Insz3cZqhMbjqdLawRg4gtTEQYjWYjnTYry69cw7Q30qDLX guQqNAs/QEgRv5IVfCepddYx/PZcGXSXqlG1yrH6k6vupp8opt+D7apfSDKV8kNsDa7l mYXVYoWRXIPh9AYlz9LjUVKooHzKuTT9mrKoA= Original-Received: by 10.231.159.146 with SMTP id j18mr2977956ibx.77.1290221395037; Fri, 19 Nov 2010 18:49:55 -0800 (PST) Original-Received: by 10.231.30.66 with HTTP; Fri, 19 Nov 2010 18:49:24 -0800 (PST) In-Reply-To: <83k4k9b1f9.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:132885 Archived-At: 2010/11/19 Eli Zaretskii : > time.el:display-time-string-forms believes that the right format for > displaying the date in the mode-line tooltip is "%a %b %e, %Y". =A0This > is not necessarily TRT in languages other than English, because > putting the month name before the day of the month does not > necessarily read well in other languages. > > Would it be a good idea to have an element of language-info-alist that > provides a proper format for this? > > In the docstring for `format-time-string': %c is the locale's date and time format. %x is the locale's "preferred" date format. %X is the locale's "preferred" time format. %EX is a locale's alternative version of %X; %OX is like %X, but uses the locale's number symbols. One of these or a combination of multiple formats seems ideal to me. --=20 Deniz Dogan