@cindex date time
@cindex format time stamp
@vindex rcirc-time-format
+@vindex rcirc-log-time-format
@code{rcirc-time-format} is the format used for the time stamp. Here's
how to include the date in the time stamp:
(setopt rcirc-time-format "%Y-%m-%d %H:%M ")
@end example
+For log files, a different time format can be specified using the
+@code{rcirc-log-time-format} user option.
+
@findex rcirc-when
If you don't wish to use verbose time formatting all the time, you can
use the @code{rcirc-when} command to display a complete timestamp for
Now, calling '(thing-at-point 'url)' when point is on a bug reference
will return the URL for that bug.
++++
+*** New user option 'rcirc-log-time-format'
+This allows for rcirc logs to use a custom timestamp format, than the
+chat buffers use by default.
+
** Customize
+++
Used as the first arg to `format-time-string'."
:type 'string)
+(defcustom rcirc-log-time-format "%d-%b %H:%M "
+ "Describes how timestamps are printed in the log files.
+Used as the first arg to `format-time-string'."
+ :version "30.1"
+ :type 'string )
+
(defcustom rcirc-input-ring-size 1024
"Size of input history ring."
:type 'integer)
(parse-iso8601-time-string time t))))
(unless (null filename)
(let ((cell (assoc-string filename rcirc-log-alist))
- (line (concat (format-time-string rcirc-time-format time)
+ (line (concat (format-time-string rcirc-log-time-format time)
(substring-no-properties
(rcirc-format-response-string process sender
response target text))