all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: Misskiss <misskiss.wang@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to dispaly hh:mm:ss in mode line?
Date: Thu, 31 Jan 2008 16:08:25 +0100	[thread overview]
Message-ID: <3B1CDDBB-ED85-47B7-ADB4-DC016E571A33@Web.DE> (raw)
In-Reply-To: <87myqltnzd.fsf@Bashee.pd.intel.com>


Am 01.02.2008 um 03:22 schrieb Misskiss:

> Now my emacs mode line can display time like "Thu Jan 31 21:19",  
> 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  
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  
latter accepts a description as can be investigated from

	man strftime

which also provides nice "localised" versions (I have in GNU Emacs  
``"%a, %d. %b %Y %R"´´ and outside a simple %Ec. You can test the  
look on the command line as in 'date '+<your format>'. There are also  
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  
then.







  reply	other threads:[~2008-01-31 15:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-01  2:22 How to dispaly hh:mm:ss in mode line? Misskiss
2008-01-31 15:08 ` Peter Dyballa [this message]
2008-01-31 22:18 ` Lennart Borgman (gmail)
2008-01-31 23:16   ` Stephen Berman
2008-01-31 23:31     ` Lennart Borgman (gmail)

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=3B1CDDBB-ED85-47B7-ADB4-DC016E571A33@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=misskiss.wang@gmail.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.