comparison src/util.h @ 13783:a539caf502b0

[gaim-migrate @ 16195] Rest of SF Patch #1492122 from Sadrul Some typo fixes and doc cleanups. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Sun, 21 May 2006 03:10:46 +0000
parents 554575d1f9b5
children 6fc412e59214
comparison
equal deleted inserted replaced
13782:f4f68315a07a 13783:a539caf502b0
242 * Formats a time into the user's preferred short date format. 242 * Formats a time into the user's preferred short date format.
243 * 243 *
244 * The returned string is stored in a static buffer, so the result 244 * The returned string is stored in a static buffer, so the result
245 * should be g_strdup()'d if it's going to be kept. 245 * should be g_strdup()'d if it's going to be kept.
246 * 246 *
247 * @param time The time to format, or @c NULL to use the current local time 247 * @param tm The time to format, or @c NULL to use the current local time
248 * 248 *
249 * @return The date, formatted as per the user's settings. 249 * @return The date, formatted as per the user's settings.
250 */ 250 */
251 const char *gaim_date_format_short(const struct tm *tm); 251 const char *gaim_date_format_short(const struct tm *tm);
252 252
254 * Formats a time into the user's preferred short date plus time format. 254 * Formats a time into the user's preferred short date plus time format.
255 * 255 *
256 * The returned string is stored in a static buffer, so the result 256 * The returned string is stored in a static buffer, so the result
257 * should be g_strdup()'d if it's going to be kept. 257 * should be g_strdup()'d if it's going to be kept.
258 * 258 *
259 * @param time The time to format, or @c NULL to use the current local time 259 * @param tm The time to format, or @c NULL to use the current local time
260 * 260 *
261 * @return The timestamp, formatted as per the user's settings. 261 * @return The timestamp, formatted as per the user's settings.
262 */ 262 */
263 const char *gaim_date_format_long(const struct tm *tm); 263 const char *gaim_date_format_long(const struct tm *tm);
264 264
266 * Formats a time into the user's preferred full date and time format. 266 * Formats a time into the user's preferred full date and time format.
267 * 267 *
268 * The returned string is stored in a static buffer, so the result 268 * The returned string is stored in a static buffer, so the result
269 * should be g_strdup()'d if it's going to be kept. 269 * should be g_strdup()'d if it's going to be kept.
270 * 270 *
271 * @param time The time to format, or @c NULL to use the current local time 271 * @param tm The time to format, or @c NULL to use the current local time
272 * 272 *
273 * @return The date and time, formatted as per the user's settings. 273 * @return The date and time, formatted as per the user's settings.
274 */ 274 */
275 const char *gaim_date_format_full(const struct tm *tm); 275 const char *gaim_date_format_full(const struct tm *tm);
276 276
278 * Formats a time into the user's preferred time format. 278 * Formats a time into the user's preferred time format.
279 * 279 *
280 * The returned string is stored in a static buffer, so the result 280 * The returned string is stored in a static buffer, so the result
281 * should be g_strdup()'d if it's going to be kept. 281 * should be g_strdup()'d if it's going to be kept.
282 * 282 *
283 * @param time The time value to format. 283 * @param tm The time to format, or @c NULL to use the current local time
284 * @param time The time to format, or @c NULL to use the current local time
285 * 284 *
286 * @return The time, formatted as per the user's settings. 285 * @return The time, formatted as per the user's settings.
287 */ 286 */
288 const char *gaim_time_format(const struct tm *tm); 287 const char *gaim_time_format(const struct tm *tm);
289 288