From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Benjamin Rutt Newsgroups: gmane.emacs.help Subject: Re: how to insert a timestamp? Date: Tue, 06 Jan 2004 16:16:11 -0500 Organization: The Ohio State University Dept. of Computer and Info. Science Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <45b780c3.0401061312.40351c46@posting.google.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073424767 16002 80.91.224.253 (6 Jan 2004 21:32:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Jan 2004 21:32:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 06 22:32:44 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Adyoe-0006pN-00 for ; Tue, 06 Jan 2004 22:32:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AdzkB-0001Ac-3x for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Jan 2004 17:32:11 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!news-hog.berkeley.edu!ucberkeley!news.cis.ohio-state.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: mu.cis.ohio-state.edu Mail-Copies-To: nobody User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (usg-unix-v) Cancel-Lock: sha1:KxTNDzLFafLpT2qpMyQ/e/CYm7o= Original-Xref: shelby.stanford.edu gnu.emacs.help:119797 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:15740 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15740 ack94598@yahoo.com (') writes: > How can I insert a string representing the current time/date at the > point? It is for timestamping entries in a diary/log. I use: (insert (format-time-string "%a %b %e, %Y %l:%M %p")) which gives (ATM): Tue Jan 6, 2004 4:15 PM There are a zillion other ways to do it. See C-h f format-time-string. -- Benjamin