mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-19 02:00:26 +02:00
(scm_strftime): Update docstring from posix.texi.
This commit is contained in:
parent
4b08cab6dd
commit
5cd87f557d
1 changed files with 16 additions and 7 deletions
|
@ -611,13 +611,22 @@ SCM_DEFINE (scm_tzset, "tzset", 0, 0, 0,
|
||||||
|
|
||||||
SCM_DEFINE (scm_strftime, "strftime", 2, 0, 0,
|
SCM_DEFINE (scm_strftime, "strftime", 2, 0, 0,
|
||||||
(SCM format, SCM stime),
|
(SCM format, SCM stime),
|
||||||
"Formats a time specification @var{time} using @var{template}. @var{time}\n"
|
"Return a string which is broken-down time structure @var{stime}\n"
|
||||||
"is an object with time components in the form returned by @code{localtime}\n"
|
"formatted according to the given @var{format} string.\n"
|
||||||
"or @code{gmtime}. @var{template} is a string which can include formatting\n"
|
"\n"
|
||||||
"specifications introduced by a @code{%} character. The formatting of\n"
|
"@var{format} contains field specifications introduced by a\n"
|
||||||
"month and day names is dependent on the current locale. The value returned\n"
|
"@samp{%} character. See @ref{Formatting Calendar Time,,, libc,\n"
|
||||||
"is the formatted string.\n"
|
"The GNU C Library Reference Manual}, or @samp{man 3 strftime},\n"
|
||||||
"@xref{Formatting Date and Time, , , libc, The GNU C Library Reference Manual}.)")
|
"for the available formatting.\n"
|
||||||
|
"\n"
|
||||||
|
"@lisp\n"
|
||||||
|
"(strftime \"%c\" (localtime (current-time)))\n"
|
||||||
|
"@result{} \"Mon Mar 11 20:17:43 2002\"\n"
|
||||||
|
"@end lisp\n"
|
||||||
|
"\n"
|
||||||
|
"If @code{setlocale} has been called (@pxref{Locales}), month\n"
|
||||||
|
"and day names are from the current locale and in the locale\n"
|
||||||
|
"character set.")
|
||||||
#define FUNC_NAME s_scm_strftime
|
#define FUNC_NAME s_scm_strftime
|
||||||
{
|
{
|
||||||
struct tm t;
|
struct tm t;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue