Commit Graph

4 Commits

Author SHA1 Message Date
4e5b1da82e Use CalComponent and the new property types instead of the old iCalObject
2000-07-31  Federico Mena Quintero  <federico@helixcode.com>

	* cal-util/cal-recur.c (*): Use CalComponent and the new property
	types instead of the old iCalObject stuff.
	(cal_recur_generate_instances): Renamed from
	cal_object_generate_events().  Ensure that the component has the
	DTSTART property.
	(generate_instances_for_year): Renamed from
	cal_object_generate_events_for_year().
	(cal_obj_expand_recurrence): Made static.
	(cal_recur_from_icalrecurrencetype): New function.  We should
	really convert this whole file to use struct icalrecurrencetype
	instead.
	(cal_recur_free): New function.

	* cal-util/cal-recur.h (CalRecurType): Renamed from CalObjRecurType.
	(CalRecurrence): Renamed from CalObjRecurrence.

	* cal-util/timeutil.c (time_from_icaltimetype): New function.

	* cal-util/Makefile.am: Commented out the test-recur program.

svn path=/trunk/; revision=4464
2000-08-02 01:08:52 +00:00
5cc159a958 Fixed warning message. (time_add_day): Likewise. (time_add_month):
2000-05-19  Federico Mena Quintero  <federico@helixcode.com>

	* cal-util/timeutil.c (time_add_minutes): Fixed warning message.
	(time_add_day): Likewise.
	(time_add_month): Likewise.
	(time_add_year): Likewise.
	(time_from_day): Of all functions, *this* one had to have a bug.
	Set the tm.tm_isdst to -1 to specify that we don't know whether
	the time is in DST or not.  This fixes *many* bugs upstream.
	(time_week_begin): Likewise.  We never noticed this since the week
	functions are never used.
	(time_week_end): Likewise.

svn path=/trunk/; revision=3135
2000-05-19 06:09:48 +00:00
d1694fef3e changed these so they just do a simple localtime(), update the struct tm,
2000-05-06  Damon Chaplin  <damon@helixcode.com>

        * cal-util/timeutil.c (time_day_begin):
        (time_day_end): changed these so they just do a simple localtime(),
        update the struct tm, then do a mktime(). I don't know why it used to
        look at the tm_isdst flags etc. From a little test program I wrote
        which steps through testing every hour for a year it wasn't working
        correctly, and the new code does.
        (time_add_day): also got rid of the stuff that looked at tm_isdst here.
        My test program now works better.

svn path=/trunk/; revision=2841
2000-05-06 22:46:54 +00:00
c6c65136bb new file -- things shared between the client and server go in this
* cal-util/Makefile.am: new file -- things shared between
        the client and server go in this directory

        *  calobj.c calobj.h icalendar.c icalendar.h
        timeutil.c timeutil.h cal-util.c cal-util.h where moved
        backend stuff went into pcs.  shared stuff went into
        cal-util.

svn path=/trunk/; revision=2032
2000-03-04 03:58:38 +00:00