all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: How to dispaly hh:mm:ss in mode line?
  2008-02-01  2:22 How to dispaly hh:mm:ss in mode line? Misskiss
@ 2008-01-31 15:08 ` Peter Dyballa
  2008-01-31 22:18 ` Lennart Borgman (gmail)
  1 sibling, 0 replies; 5+ messages in thread
From: Peter Dyballa @ 2008-01-31 15:08 UTC (permalink / raw)
  To: Misskiss; +Cc: help-gnu-emacs


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.







^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to dispaly hh:mm:ss in mode line?
  2008-02-01  2:22 How to dispaly hh:mm:ss in mode line? Misskiss
  2008-01-31 15:08 ` Peter Dyballa
@ 2008-01-31 22:18 ` Lennart Borgman (gmail)
  2008-01-31 23:16   ` Stephen Berman
  1 sibling, 1 reply; 5+ messages in thread
From: Lennart Borgman (gmail) @ 2008-01-31 22:18 UTC (permalink / raw)
  To: Misskiss; +Cc: help-gnu-emacs

Misskiss wrote:
> Dear Friends,
> 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?


Please look at the description of these feature

   C-h f display-time

or

   C-h f display-time-mode

It says the time is updated every minute. So it is not much fun 
displaying the seconds.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to dispaly hh:mm:ss in mode line?
  2008-01-31 22:18 ` Lennart Borgman (gmail)
@ 2008-01-31 23:16   ` Stephen Berman
  2008-01-31 23:31     ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Berman @ 2008-01-31 23:16 UTC (permalink / raw)
  To: help-gnu-emacs

On Thu, 31 Jan 2008 23:18:56 +0100 "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> wrote:

> Misskiss wrote:
>> Dear Friends,
>> 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?
>
>
> Please look at the description of these feature
>
>   C-h f display-time
>
> or
>
>   C-h f display-time-mode
>
> It says the time is updated every minute. So it is not much fun
> displaying the seconds.

M-x customize-option RET display-time-interval RET

Steve Berman





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to dispaly hh:mm:ss in mode line?
  2008-01-31 23:16   ` Stephen Berman
@ 2008-01-31 23:31     ` Lennart Borgman (gmail)
  0 siblings, 0 replies; 5+ messages in thread
From: Lennart Borgman (gmail) @ 2008-01-31 23:31 UTC (permalink / raw)
  To: Stephen Berman; +Cc: help-gnu-emacs, Emacs Devel

Stephen Berman wrote:
> On Thu, 31 Jan 2008 23:18:56 +0100 "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> wrote:
> 
>> Misskiss wrote:
>>> Dear Friends,
>>> 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?
>>
>> Please look at the description of these feature
>>
>>   C-h f display-time
>>
>> or
>>
>>   C-h f display-time-mode
>>
>> It says the time is updated every minute. So it is not much fun
>> displaying the seconds.
> 
> M-x customize-option RET display-time-interval RET
> 
> Steve Berman


Aha, I had no idea. Maybe the doc string for display-time(-mode) should 
say something about this?




^ permalink raw reply	[flat|nested] 5+ messages in thread

* How to dispaly hh:mm:ss in mode line?
@ 2008-02-01  2:22 Misskiss
  2008-01-31 15:08 ` Peter Dyballa
  2008-01-31 22:18 ` Lennart Borgman (gmail)
  0 siblings, 2 replies; 5+ messages in thread
From: Misskiss @ 2008-02-01  2:22 UTC (permalink / raw)
  To: help-gnu-emacs

Dear Friends,
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?

Thanks a lot.
Misskiss
-- 

You have an unusual understanding of the problems of human relationships.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-02-01  2:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-01  2:22 How to dispaly hh:mm:ss in mode line? Misskiss
2008-01-31 15:08 ` Peter Dyballa
2008-01-31 22:18 ` Lennart Borgman (gmail)
2008-01-31 23:16   ` Stephen Berman
2008-01-31 23:31     ` Lennart Borgman (gmail)

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.