Commit Graph

10 Commits

Author SHA1 Message Date
14fda1ed48 added a 2nd format, with the weekday and the date. We need this so we can
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-10-30 13:01:36 +00:00
5772dcbe43 only use 1 format, so we are consistent everywhere. If we support multiple
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-09-18 01:23:11 +00:00
e137371494 Added format for "7 PM" and equivalents. Fixes bug #7456.
2001-08-31  Federico Mena Quintero  <federico@ximian.com>

	* e-time-utils.c (e_time_parse_date_and_time): Added format for
	"7 PM" and equivalents.  Fixes bug #7456.
	(e_time_parse_time): Likewise.

svn path=/trunk/; revision=12549
2001-09-01 00:14:01 +00:00
0a672ffa44 added comments to help translators a bit.
2001-08-20  Damon Chaplin  <damon@ximian.com>

	* e-time-utils.c (e_time_parse_date): added comments to help
	translators a bit.

svn path=/trunk/; revision=12260
2001-08-20 07:32:12 +00:00
55eb097681 Generalized function for trying a number of strptime() formats on a
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-07-16 21:26:12 +00:00
be26e5a854 skip any non-digits while looking for dates and times. This should fix
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-14 06:04:20 +00:00
56132926ca got rid of '%n' at end of each format string for strptime. I don't know
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-06-10 20:53:13 +00:00
6d9167de80 Remove #include <glib.h> Shuffle some headers. Remove #include
2001-03-29  Kjartan Maraas  <kmaraas@gnome.org>

	* e-corba-utils.h: Remove #include <glib.h>
	* e-dialog-widgets.c: Shuffle some headers.
	* e-dialog-widgets.h: Remove #include <libgnomeui/gnome-propertybox.h>
	* e-gtk-utils.c: #include <gtk/gtksignal.h>
	* e-gtk-utils.h: Replace #include <gtk/gtk.h>
	* e-gui-utils.c: Replace #include <gnome.h>
	* e-html-utils.c: Shuffle headers.
	* e-iterator.c: Replace #include <gtk/gtk.h>
	* e-iterator.h: Replace #include <gtk/gtk.h>
	* e-list-iterator.c: Remove #include <gtk/gtk.h>
	* e-list-iterator.h: Replace #include <gtk/gtk.h>
	* e-list.c: Remove #include <gtk/gtk.h>
	* e-list.h: Replace #include <gtk/gtk.h>
	* e-memory.c: #include <string.h> and <stdlib.h>
	* e-msgport.c: Move around some includes. s/%d/%ld/g in a printf()
	call to fix a warning.
	* e-pilot-map.c: #include <string.h>. Replace #include <gnome.h>
	* e-pilot-util.c: Remove #include <gnome.h>
	* e-sexp.c: Remove #include <glib.h>
	* e-sexp.h: Replace #include <gtk/gtk.h>
	* e-time-utils.c: #include <string.h>
	* md5-utils.c: Shuffle headers.
	* test-ename-western-gtk.c: Replace #include <gnome.h>
	* test-ename-western.c: Same here.

svn path=/trunk/; revision=9016
2001-03-29 18:07:13 +00:00
79b4221f89 added function to format just the time.
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-19 15:46:32 +00:00
0a60162f0b new files to contain functions to parse and format dates and times for
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
2001-03-04 23:52:39 +00:00