Difference between revisions of "Mu strftime"

From Mailutils
Jump to navigationJump to search
(Created page with "{{DISPLAYTITLE:mu_strftime}} <syntaxhighlight lang="C"> #include <mailutils/datetime.h> size_t mu_strftime (char *buf, size_t size, const char *format, struct tm *tm); </syntaxh...")
 
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
The <tt>mu_strftime</tt> function formats the broken-down time <tt>tm</tt> according to the [[mu_c_streamftime#Format_string|format specification]] <tt>format</tt> and places the result in the character array <tt>buf</tt> of size <tt>size</tt>.  It is equivalent to [http://www.manpagez.com/man/3/strftime/ strftime(3)], except that it always operates in POSIX locale.
+
The <tt>mu_strftime</tt> function formats the broken-down time <tt>tm</tt> according to the [[mu_c_streamftime#Format_string|format specification]] <tt>format</tt> and places the result in the character array <tt>buf</tt> of size <tt>size</tt>.  It is equivalent to {{man|3|strftime}}, except that it always operates in POSIX locale.
  
 
== See also ==
 
== See also ==

Latest revision as of 11:36, 11 July 2015

#include <mailutils/datetime.h>

size_t mu_strftime (char *buf, size_t size, const char *format, struct tm *tm);

The mu_strftime function formats the broken-down time tm according to the format specification format and places the result in the character array buf of size size. It is equivalent to strftime(3), except that it always operates in POSIX locale.

See also

mu_c_streamftime