From mboxrd@z Thu Jan  1 00:00:00 1970
From: Nick Dokos <nicholas.dokos@hp.com>
Subject: Re: [OT] lisp func to write timestamp to buffer
Date: Thu, 29 Oct 2009 22:44:39 -0400
Message-ID: <8260.1256870679@gamaville.dokosmarshall.org>
References: <1e5bcefd0910291629w187d54a1w4de9fa3185cc1a11@mail.gmail.com>
Reply-To: nicholas.dokos@hp.com
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1N3hVS-0007db-3I
	for emacs-orgmode@gnu.org; Thu, 29 Oct 2009 22:46:26 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1N3hVM-0007Wb-3m
	for emacs-orgmode@gnu.org; Thu, 29 Oct 2009 22:46:25 -0400
Received: from [199.232.76.173] (port=38333 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1N3hVL-0007WY-W6
	for emacs-orgmode@gnu.org; Thu, 29 Oct 2009 22:46:20 -0400
Received: from vms173003pub.verizon.net ([206.46.173.3]:61666)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <nick@gamaville.dokosmarshall.org>)
	id 1N3hVL-0003HR-GL
	for emacs-orgmode@gnu.org; Thu, 29 Oct 2009 22:46:19 -0400
Received: from gamaville.dokosmarshall.org ([173.76.32.106])
	by vms173003.mailsrvcs.net
	(Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008;
	32bit)) with ESMTPA id <0KSB005X03M1V1GF@vms173003.mailsrvcs.net> for
	emacs-orgmode@gnu.org; Thu, 29 Oct 2009 21:44:26 -0500 (CDT)
In-reply-to: Message from Marcelo de Moraes Serpa <celoserpa@gmail.com> of
	"Thu\, 29 Oct 2009 17\:29\:06 MDT."
	<1e5bcefd0910291629w187d54a1w4de9fa3185cc1a11@mail.gmail.com>
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
To: Marcelo de Moraes Serpa <celoserpa@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>

Marcelo de Moraes Serpa <celoserpa@gmail.com> wrote:

> Hello list,
>=20
> Org uses a timestamp format like the following across all its functionali=
ty:
>=20
> [2009-10-29 Thu 17:14]
>=20
> I would like to be able to ouput this string whenever I'd like to a buffe=
r, with the current timestamp, this is useful for example to timestamp notes
> inside an org file arbitrarily:
>=20
> * [2009-10-29 Thu 17:14
> =C2=A0Bla Bla Bla
>=20
> How could I do that? I searched for such function with apropos but couldn=
't find anything that fits.
>=20

Assuming you are in an org buffer

C-u C-c ! <RET>

will insert an inactive time stamp (including the current time - that's the=
 prefix argument):

     [2009-10-29 Thu 22:34]

Similarly

C-u C-c . <RET>

will insert an active time stamp:

     <2009-10-29 Thu 22:35>


The functions bound to C-c ! and C-c . are org-time-stamp-inactive and org-=
time-stamp
respectively. BTW, both are in the drop-down Org menu: Org/Dates and Schedu=
ling/...

Is this what you are looking for?=20

Nick