From: Thibaut Verron <thibaut.verron+gmane@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Display current date/time
Date: Tue, 25 Mar 2014 10:15:14 +0000 (UTC) [thread overview]
Message-ID: <loom.20140325T111229-450@post.gmane.org> (raw)
In-Reply-To: 20140325105404.03b375ee@aga-netbook
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
next prev parent reply other threads:[~2014-03-25 10:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-25 9:54 Display current date/time Marcin Borkowski
2014-03-25 10:15 ` Thibaut Verron [this message]
2014-03-25 12:05 ` Eric Abrahamsen
2014-03-25 21:37 ` Stefan Monnier
[not found] <mailman.18141.1395741262.10748.help-gnu-emacs@gnu.org>
2014-03-25 10:10 ` Damien Wyart
-- strict thread matches above, loose matches on Subject: below --
2014-03-27 0:35 Tak Kunihiro
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=loom.20140325T111229-450@post.gmane.org \
--to=thibaut.verron+gmane@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.