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...")
 
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 [http://man.gnu.org.ua/3/strftime strftime(3)], except that it always operates in POSIX locale.
  
 
== See also ==
 
== See also ==

Revision as of 13:43, 7 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