[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to insert a timestamp?
From: |
Benjamin Rutt |
Subject: |
Re: how to insert a timestamp? |
Date: |
Tue, 06 Jan 2004 16:16:11 -0500 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (usg-unix-v) |
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