mu_strftime

From Mailutils

(Difference between revisions)
Jump to: navigation, search
 
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 {{man|3|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

Personal tools