org-insert-time-stamp

org-insert-time-stamp is a compiled Lisp function in `org.el'.

(org-insert-time-stamp TIME &optional WITH-HM INACTIVE PRE POST EXTRA)

Insert a date stamp for the date given by the internal TIME.
WITH-HM means use the stamp format that includes the time of the day.
INACTIVE means use square brackets instead of angular ones, so that the
stamp will not contribute to the agenda.
PRE and POST are optional strings to be inserted before and after the
stamp.
The command returns the inserted time stamp.