/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Time utility functions * * Author: * Damon Chaplin (damon@ximian.com) * * (C) 2001 Ximian, Inc. */ #ifndef E_TIME_UTILS #define E_TIME_UTILS #include #include typedef enum { E_TIME_PARSE_OK, E_TIME_PARSE_NONE, E_TIME_PARSE_INVALID } ETimeParseStatus; /* Tries to parse a string containing a date and time. */ ETimeParseStatus e_time_parse_date_and_time (const char *value, struct tm *result); /* Tries to parse a string containing a date. */ ETimeParseStatus e_time_parse_date (const char *value, struct tm *result); /* Tries to parse a string containing a time. */ ETimeParseStatus e_time_parse_time (const char *value, struct tm *result); /* Turns a struct tm into a string like "Wed 3/12/00 12:00:00 AM". */ void e_time_format_date_and_time (struct tm *date_tm, gboolean use_24_hour_format, gboolean show_midnight, gboolean show_zero_seconds, char *buffer, int buffer_size); /* Formats a time from a struct tm, e.g. "01:59 PM". */ void e_time_format_time (struct tm *date_tm, gboolean use_24_hour_format, gboolean show_zero_seconds, char *buffer, int buffer_size); /* Like mktime(3), but assumes UTC instead of local timezone. */ time_t e_mktime_utc (struct tm *timeptr); /* Like localtime_r(3), but also returns an offset in minutes after UTC. (Calling gmtime with tt + offset would generate the same tm) */ void e_localtime_with_offset (time_t tt, struct tm *tm, int *offset); #endif /* E_TIME_UTILS */ d>
aboutsummaryrefslogtreecommitdiffstats
path: root/po
Commit message (Expand)AuthorAgeFilesLines
* Translation updated by Ivar Smolin.Priit Laes2005-07-022-305/+587
* Updated Traditional Chinese translation.Chao-Hsiung Liao2005-07-012-19498/+1894
* Updated Simplified Chinese translationFunda Wang2005-07-012-170/+485
* Added the remaining relevant gal files.Kaushal Kumar2005-06-283-1/+22
* Updated Spanish translation.Francisco Javier F. Serrador2005-06-282-110/+220
* updated by rranjan@redhat.comRajesh Ranjan2005-06-271-585/+387
* Added the new exchange plugin files. Updated the old files here.Sarfraaz Ahmed2005-06-273-2/+10
* Updated Finnish TranslationIlkka Tuohela2005-06-262-1895/+1047
* fix language team referenceKwok-Koon Cheung2005-06-242-55/+72
* Updated Canadian English translation.Adam Weinberger2005-06-242-4906/+4781
* Updated Spanish translation.Francisco Javier F. Serrador2005-06-231-3/+3
* Updated Spanish translation.Francisco Javier F. Serrador2005-06-232-107/+90
* Updated zh_CN translationFunda Wang2005-06-222-61/+37
* Fix breaks from last commit.Not Zed2005-06-215-1644/+1646
* added all the new gal widgets & a couple of other missing files. re-sortedNot Zed2005-06-21