2001-10-30 Damon Chaplin <damon@ximian.com>
* e-time-utils.c (e_time_parse_date): added a 2nd format, with the
weekday and the date. We need this so we can try to parse DATE values
in the ECalendarTable.
svn path=/trunk/; revision=14457
2001-09-17 Damon Chaplin <damon@ximian.com>
* e-time-utils.c (e_time_parse_date): only use 1 format, so we are
consistent everywhere. If we support multiple formats we have to
support that in e_time_parse_date_and_time() which means an explosion
of different formats. I don't think the alternatives are that useful,
anyway.
(e_time_parse_date_and_time): parse everything in one go, to avoid
i18n problems. Also only use '%p' if the locale has am/pm strings.
(e_time_parse_time): Only use '%p' if locale has am/pm strings.
svn path=/trunk/; revision=12924
2001-07-16 Federico Mena Quintero <federico@ximian.com>
* e-time-utils.c (parse_with_strptime): Generalized function for
trying a number of strptime() formats on a string.
(e_time_parse_time): Use parse_with_strptime().
(e_time_parse_date): New function, analogous to the previous one,
but uses a number of date formats.
svn path=/trunk/; revision=11138
2001-06-11 Damon Chaplin <damon@ximian.com>
* e-time-utils.c (e_time_parse_date_and_time): skip any non-digits
while looking for dates and times. This should fix some translation
problems. Though there is still a problem with Japanese, where the
am/pm flag comes before the time so we will skip it incorrectly.
svn path=/trunk/; revision=10224
2001-06-10 Damon Chaplin <damon@ximian.com>
* e-time-utils.c (e_time_parse_date_and_time):
(e_time_parse_time): got rid of '%n' at end of each format string
for strptime. I don't know how I managed to put them in there.
svn path=/trunk/; revision=10177
2001-03-18 Damon Chaplin <damon@ximian.com>
* e-time-utils.c (e_time_format_time): added function to format just
the time.
svn path=/trunk/; revision=8822
2001-03-04 Damon Chaplin <damon@ximian.com>
* e-time-utils.[hc]: new files to contain functions to parse and
format dates and times for various calendar widgets.
svn path=/trunk/; revision=8546