Commit Graph

14 Commits

Author SHA1 Message Date
88e9abec50 fix a comment (e_localtime_with_offset returns the offset in seconds
after UTC, not minutes)

svn path=/trunk/; revision=18670
2002-11-08 15:19:09 +00:00
9c73777f22 First big sync of my GNOME 2 porting work (incomplete, and still
pretty broken).

Weeeeee!

svn path=/trunk/; revision=18503
2002-11-02 08:25:03 +00:00
4270c51a98 New. Like mktime(3), but assumes the input time is UTC.
* e-time-utils.c (e_mktime_utc): New. Like mktime(3), but assumes
	the input time is UTC.
	(e_localtime_with_offset): New. Like localtime_r(3), but also
	returns an offset from UTC.

svn path=/trunk/; revision=17971
2002-09-04 19:13:14 +00:00
51e6a4e0ac if the year was two digits, add the current century
2002-08-22  JP Rosevear  <jpr@ximian.com>

	* e-time-utils.c (e_time_parse_date): if the year was two digits,
	add the current century

svn path=/trunk/; revision=17833
2002-08-22 15:39:41 +00:00
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