From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/1278 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.gnus.user Subject: Re: inserting date and time at the cursor location Date: Fri, 4 Oct 2002 00:46:41 -0400 Message-ID: References: <3d9aee7f$0$15412$3b214f66@aconews.univie.ac.at> Reply-To: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1138668080 10631 80.91.229.2 (31 Jan 2006 00:41:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:41:20 +0000 (UTC) Cc: Original-X-From: nobody Tue Jan 17 17:28:54 2006 Original-Path: quimby.gnus.org!oh-northolmstead1-7-171.clvhoh.adelphia.net!ken Original-Newsgroups: comp.emacs.xemacs,gnu.emacs.help,gnu.emacs.gnus Original-NNTP-Posting-Host: oh-northolmstead1-7-171.clvhoh.adelphia.net Original-X-Trace: quimby.gnus.org 1033709703 27086 68.71.102.171 (4 Oct 2002 05:35:03 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 4 Oct 2002 05:35:03 GMT Original-To: Guy-Armand Kamendje X-X-Sender: In-Reply-To: <3d9aee7f$0$15412$3b214f66@aconews.univie.ac.at> Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:1418 Original-Lines: 42 X-Gnus-Article-Number: 1418 Tue Jan 17 17:28:54 2006 Xref: news.gmane.org gmane.emacs.gnus.user:1278 Archived-At: Here's some elisp which does them separately... what I use: (defun now () "Insert string for the current time formatted like '2:34 PM'." (interactive) ; permit invocation in minibuffer (insert (format-time-string "%-I:%M %p")) ) (defun today () "Insert string for today's date nicely formatted in American style, e.g. Sunday, September 17, 2000." (interactive) ; permit invocation in minibuffer (insert (format-time-string "%A, %B %e, %Y")) ) Put these in a file in your emacs path. Do "M-x today" or "M-x now" to invoke. Also, it should be obvious how to integrate the two. hth, ken -- AMD crashes? See http://cleveland.lug.net/~ken/amd-problem/. Spake Guy-Armand Kamendje at 15:03 (UTC+0200) on Wed, 2 Oct 2002: = Hi, = Is there a way to let xemacs insert the current date and time at the actual = cursor location? = Thanks for any hint = Guy = = = _______________________________________________ = Help-gnu-emacs mailing list = Help-gnu-emacs@gnu.org = http://mail.gnu.org/mailman/listinfo/help-gnu-emacs =