From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thibaut Verron Newsgroups: gmane.emacs.help Subject: Re: Display current date/time Date: Tue, 25 Mar 2014 10:15:14 +0000 (UTC) Message-ID: References: <20140325105404.03b375ee@aga-netbook> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1395742834 30535 80.91.229.3 (25 Mar 2014 10:20:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Mar 2014 10:20:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 25 11:20:40 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WSOTB-0001jZ-Qs for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Mar 2014 11:20:33 +0100 Original-Received: from localhost ([::1]:40497 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSOTB-0005jB-8m for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Mar 2014 06:20:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSOSp-0005gU-UY for help-gnu-emacs@gnu.org; Tue, 25 Mar 2014 06:20:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSOSj-0001eI-Vo for help-gnu-emacs@gnu.org; Tue, 25 Mar 2014 06:20:11 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:57291) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSOSj-0001ZH-Pa for help-gnu-emacs@gnu.org; Tue, 25 Mar 2014 06:20:05 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WSOSh-0001AG-LF for help-gnu-emacs@gnu.org; Tue, 25 Mar 2014 11:20:03 +0100 Original-Received: from ilithye.calsci.lip6.fr ([132.227.66.71]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Mar 2014 11:20:03 +0100 Original-Received: from thibaut.verron+gmane by ilithye.calsci.lip6.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Mar 2014 11:20:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 132.227.66.71 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96740 Archived-At: Marcin Borkowski 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