2001-06-14 Damon Chaplin <damon@ximian.com>
* src/libical/icaltimezone.c (icaltimezone_get_latitude):
(icaltimezone_get_longitude): added functions to get the coords of
builtin timezones.
svn path=/trunk/; revision=10222
2001-06-13 Damon Chaplin <damon@ximian.com>
* src/libical/icalrecur.c: merged in some new stuff from libical CVS.
(icalrecur_add_byrules): If no sign is given set sign to 1 (i.e.
default to positive).
(icalrecur_iterator_new): when setting up the year days array, handle
the case where a year has no occurrences and we have to skip it.
Also initialize the last.day and last.month fields.
(expand_by_day): set the last day of the year explicitly rather than
adding 1 to year and subtracting 1 from day. It is more efficient,
and less prone to bugs. Also rewrote a bit.
(expand_year_days): added code to handle BY_MONTH_DAY and BY_DAY +
BY_MONTH_DAY, and rewrote code to handle BY_DAY + BY_MONTH.
(next_year): handled the case where there are no occurrences in the
year.
* src/libical/icaltime.c (icaltime_adjust): new function to adjust a
time by a number of days/hours/minutes/seconds.
(icaltime_day_of_week): rewrote using a single call to mktime().
(icaltime_day_of_year): rewrote using a single call to mktime().
(icaltime_from_day_of_year): rewrote in a simpler way. The old version
had a bug in it.
* src/libical/icaltime.h (struct icaltimetype): added is_daylight
flag, so we can try to distinguish between standard and daylight time
when the clocks go back. Though this doesn't always resolve the
ambiguity.
* src/libical/icalcomponent.c: added some stuff to handle timezone
data connected to the calendar component. Unfinished.
* src/libical/icalyacc.y: merged in a fix from sourceforge CVS version
of libical, so we can handle -ve UTC offsets.
* src/libical/Makefile.am (CPPFLAGS): added PACKAGE_DATA_DIR define
for finding the VTIMEZONE files.
(libical_la_SOURCES): added icalarray.[hc] and icaltimezone.[hc].
(COMBINEDHEADERS): added icalarray.h and icaltimezone.h to the headers
to be combined into ical.h.
svn path=/trunk/; revision=10220
2001-06-13 Damon Chaplin <damon@ximian.com>
* src/libical/icaltimezone.[hc]: new files to contain support for
timezones.
* src/libical/icalarray.[hc]: new files to provide a simple expanding
array datatype.
svn path=/trunk/; revision=10215
2001-05-16 JP Rosevear <jpr@ximian.com>
* src/libical/Makefile.am: Fixes to make it make dist and make
distcheck. Kind of kludgy but they seem to work. Time will tell.
svn path=/trunk/; revision=9841
2001-02-06 Christopher James Lahey <clahey@ximian.com>
* src/libical/icallangbind.c: Added a missing #include here.
* src/libical/icalrecur.c (icalrecur_add_bydayrules): Copy the
passed in const vals since we change it.
svn path=/trunk/; revision=8019
2001-02-05 JP Rosevear <jpr@ximian.com>
* src/libical/icallangbind.c (icallangbind_get_property): Use the
renamed api call
svn path=/trunk/; revision=8011
2001-01-24 Damon Chaplin <damon@helixcode.com>
* src/libical/icaltime.c (set_tz):
(unset_tz): rewrote to fix problems with freeing the environment
string after calling putenv() and to fix memory leaks. (We save a
pointer to the last TZ env var we set, so we free it after the next
time we set TZ.)
svn path=/trunk/; revision=7788
2001-01-19 JP Rosevear <jpr@ximian.com>
* src/libical/icalvalue.c.in (icalvalue_duration_as_ical_string): add
-ve sign to output of duration if appropriate.
(icalvalue_trigger_as_ical_string): implement. not happy how this is
done with the -1 for is_date trick but it will do for now and period
does things in a similar way.
svn path=/trunk/; revision=7645
2000-12-21 JP Rosevear <jpr@helixcode.com>
* src/libical/icaltime.c: include configure.h because HAVE_TIMEZONE
is used
* acconfig.h: Terminate variable comment so that the variable can
actually be seen
svn path=/trunk/; revision=7122
2000-12-13 Federico Mena Quintero <federico@helixcode.com>
* src/libical/icaltime.c (icaltime_from_timet): Use gmtime()
unconditionally, since we want an UTC broken-down representation.
(icaltime_as_timet): Add the offset only if the time was supposed
to be in UTC; that way mktime() will get a proper localtime as
source data.
svn path=/trunk/; revision=6996
2000-12-13 Federico Mena Quintero <federico@helixcode.com>
* src/libical/icaltime.c (icaltime_from_timet): time_t values
*are* in UTC by definition, so the is_utc argument is useless.
Removed the conversion to UTC and made the icaltimetype.is_utc be
TRUE always. This breaks libical's owne internal use of this
function, but since we do not use any of the functions that use it
that way, we can ignore this. This is basically a temporary
measure until libical does the right thing.
svn path=/trunk/; revision=6994
2000-12-12 Eric Busboom <eric@softwarestudio.org>
* icalparser.c Addedd support for x-parameters.
* icalenum.c Fixed icalenum_parameter_type_to_string and
icalenum_property_type_to_string to property identify X- parameers
and properties.
* icalparameter.c Fixed icalparameter_as_ical_string to property
write out X-Parameters.
svn path=/trunk/; revision=6990
2000-12-13 Christopher James Lahey <clahey@helixcode.com>
* src/libical/icalerror.h: Added a name to the parameter to
icalerror_set_errno.
svn path=/trunk/; revision=6985
2000-12-13 Federico Mena Quintero <federico@helixcode.com>
* src/libical/Makefile.am (COMBINEDHEADERS): Removed the explicit
paths. Why it did *not* work on my original try when they were
not there, well, now I don't know.
svn path=/trunk/; revision=6980