From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: How to dispaly hh:mm:ss in mode line? Date: Thu, 31 Jan 2008 16:08:25 +0100 Message-ID: <3B1CDDBB-ED85-47B7-ADB4-DC016E571A33@Web.DE> References: <87myqltnzd.fsf@Bashee.pd.intel.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1201792138 5165 80.91.229.12 (31 Jan 2008 15:08:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jan 2008 15:08:58 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Misskiss Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 31 16:09:19 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JKb2R-0003gu-94 for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jan 2008 16:09:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKb1z-0004lm-RX for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jan 2008 10:08:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKb1i-0004jZ-K3 for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 10:08:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKb1h-0004iZ-TJ for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 10:08:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKb1h-0004iM-N2 for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 10:08:29 -0500 Original-Received: from fmmailgate02.web.de ([217.72.192.227]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JKb1h-0005z9-HE for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 10:08:29 -0500 Original-Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate02.web.de (Postfix) with ESMTP id 8320ACE7C0DE; Thu, 31 Jan 2008 16:08:28 +0100 (CET) Original-Received: from [195.4.205.151] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.109 #226) id 1JKb1g-0005JD-00; Thu, 31 Jan 2008 16:08:28 +0100 In-Reply-To: <87myqltnzd.fsf@Bashee.pd.intel.com> X-Mailer: Apple Mail (2.753) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1+oh7ooXakd0n1LeaXl7LDdCR3I9eu+m0j2TZeF hRbQoeFxe+1OyJja09EDjPcanGNuQApapflmjRE7ZFfG/2zKb2 ycXVPiXkApD6H27RwIYw== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51125 Archived-At: Am 01.02.2008 um 03:22 schrieb Misskiss: > Now my emacs mode line can display time like "Thu Jan 31 21:19", =20 > what if > I want to display second, too? just like: Thu Jan 31 21:19:23, and it > also can update per second? > To make the time and date appear in mode-line add to your user init =20 file, ~/.emacs: (display-time) The time format is determined by two variables: display-time-24hr-format display-time-format The former can be customised to be true or false (t or nil), the =20 latter accepts a description as can be investigated from man strftime which also provides nice "localised" versions (I have in GNU Emacs =20 ``"%a, %d. %b %Y %R"=B4=B4 and outside a simple %Ec. You can test the =20= look on the command line as in 'date '+'. There are also =20= the customisable variables display-time-mode display-time-string-forms of which I am not that sure whether they are needed. -- Greetings Pete Real Time, adj.: Here and now, as opposed to fake time, which only occurs there = and =20 then.