comparison libpurple/util.h @ 18259:c5c265dff90c

support replying to XEP-0202 queries
author Nathan Walp <nwalp@pidgin.im>
date Sun, 24 Jun 2007 04:53:36 +0000
parents c588a4a9d287
children 700b642631bc db41905e7cc4
comparison
equal deleted inserted replaced
18258:70747b33f1bd 18259:c5c265dff90c
253 * 253 *
254 * @note @a format is required to be in UTF-8. This differs from strftime(), 254 * @note @a format is required to be in UTF-8. This differs from strftime(),
255 * where the format is provided in the locale charset. 255 * where the format is provided in the locale charset.
256 */ 256 */
257 const char *purple_utf8_strftime(const char *format, const struct tm *tm); 257 const char *purple_utf8_strftime(const char *format, const struct tm *tm);
258
259 /**
260 * Gets a string representation of the local timezone offset
261 *
262 * @param tm The time to get the timezone for
263 * @param iso TRUE to format the offset according to ISO-8601, FALSE to
264 * not substitute 'Z' for 0 offset, and to not separate
265 * hours and minutes with a colon.
266 */
267 const char *purple_get_tzoff_str(const struct tm *tm, gboolean iso);
258 268
259 /** 269 /**
260 * Formats a time into the user's preferred short date format. 270 * Formats a time into the user's preferred short date format.
261 * 271 *
262 * The returned string is stored in a static buffer, so the result 272 * The returned string is stored in a static buffer, so the result