aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-time-utils.c
Commit message (Collapse)AuthorAgeFilesLines
* fix a comment (e_localtime_with_offset returns the offset in secondsDan Winship2002-11-081-1/+1
| | | | | | after UTC, not minutes) svn path=/trunk/; revision=18670
* First big sync of my GNOME 2 porting work (incomplete, and stillEttore Perazzoli2002-11-021-1/+0
| | | | | | | | pretty broken). Weeeeee! svn path=/trunk/; revision=18503
* New. Like mktime(3), but assumes the input time is UTC.Dan Winship2002-09-051-5/+56
| | | | | | | | | * 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
* if the year was two digits, add the current centuryJP Rosevear2002-08-221-1/+20
| | | | | | | | | 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
* added a 2nd format, with the weekday and the date. We need this so we canDamon Chaplin2001-10-301-2/+5
| | | | | | | | | | 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
* only use 1 format, so we are consistent everywhere. If we support multipleDamon Chaplin2001-09-181-141/+172
| | | | | | | | | | | | | | | 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
* Added format for "7 PM" and equivalents. Fixes bug #7456.Federico Mena Quintero2001-09-011-4/+10
| | | | | | | | | | 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
* added comments to help translators a bit.Damon Chaplin2001-08-201-0/+10
| | | | | | | | | 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
* Generalized function for trying a number of strptime() formats on aFederico Mena Quintero2001-07-171-53/+93
| | | | | | | | | | | | 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
* skip any non-digits while looking for dates and times. This should fixDamon Chaplin2001-06-141-18/+7
| | | | | | | | | | | 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
* got rid of '%n' at end of each format string for strptime. I don't knowDamon Chaplin2001-06-111-8/+8
| | | | | | | | | | 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
* Remove #include <glib.h> Shuffle some headers. Remove #includeKjartan Maraas2001-03-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* added function to format just the time.Damon Chaplin2001-03-191-8/+45
| | | | | | | | | 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
* new files to contain functions to parse and format dates and times forDamon Chaplin2001-03-051-0/+292
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