help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display current date/time


From: Thibaut Verron
Subject: Re: Display current date/time
Date: Tue, 25 Mar 2014 10:15:14 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Marcin Borkowski <mbork <at> wmi.amu.edu.pl> writes:

> 
> Hello list,
> 
> is there an (interactive) function to display current date and/or time
> in the echo area?  I'd like to be able to say M-x today and see today's
> date, for instance, without having to fire up the calendar.
> 
> TIA,
> 

I don't know of any existing function for that, but you can use a simple 
definition like:

(defun today ()
(interactive)
(message (format-time-string "%Y-%m-%d %T")))

Thibaut




reply via email to

[Prev in Thread] Current Thread [Next in Thread]