# HG changeset patch # User Eli Zaretskii # Date 1155387307 0 # Node ID 18daa6c46ee7b98643596d244e6e3a30a2e2b301 # Parent 479403e5eb4edbf4ac02eef7bb2c692157fa496e (Time Parsing): Add %z to format-time-string, per docstring. Add cross reference to glibc manual for strftime. diff -r 479403e5eb4e -r 18daa6c46ee7 lispref/os.texi --- a/lispref/os.texi Sat Aug 12 12:38:38 2006 +0000 +++ b/lispref/os.texi Sat Aug 12 12:55:07 2006 +0000 @@ -1256,7 +1256,9 @@ @item %Y This stands for the year with century. @item %Z -This stands for the time zone abbreviation. +This stands for the time zone abbreviation (e.g., @samp{EST}). +@item %z +This stands for the time zone numerical offset (e.g., @samp{-0500}). @end table You can also specify the field width and type of padding for any of @@ -1286,12 +1288,14 @@ Universal Time; @code{nil} means describe it using what Emacs believes is the local time zone (see @code{current-time-zone}). -This function uses the C library function @code{strftime} to do most of -the work. In order to communicate with that function, it first encodes -its argument using the coding system specified by -@code{locale-coding-system} (@pxref{Locales}); after @code{strftime} -returns the resulting string, @code{format-time-string} decodes the -string using that same coding system. +This function uses the C library function @code{strftime} +(@pxref{Formatting Calendar Time,,, libc, The GNU C Library Reference +Manual}) to do most of the work. In order to communicate with that +function, it first encodes its argument using the coding system +specified by @code{locale-coding-system} (@pxref{Locales}); after +@code{strftime} returns the resulting string, +@code{format-time-string} decodes the string using that same coding +system. @end defun @defun seconds-to-time seconds