aboutsummaryrefslogtreecommitdiffstats
path: root/libical
diff options
context:
space:
mode:
Diffstat (limited to 'libical')
-rw-r--r--libical/ChangeLog6
-rw-r--r--libical/src/libical/icaltimezone.c16
-rw-r--r--libical/src/libical/icaltimezone.h6
3 files changed, 28 insertions, 0 deletions
diff --git a/libical/ChangeLog b/libical/ChangeLog
index 7738c42ec0..74b68ed311 100644
--- a/libical/ChangeLog
+++ b/libical/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2001-06-13 Damon Chaplin <damon@ximian.com>
* src/libical/icalrecur.c: merged in some new stuff from libical CVS.
diff --git a/libical/src/libical/icaltimezone.c b/libical/src/libical/icaltimezone.c
index ced5a98e7e..796e01a3ea 100644
--- a/libical/src/libical/icaltimezone.c
+++ b/libical/src/libical/icaltimezone.c
@@ -999,6 +999,22 @@ icaltimezone_get_location (icaltimezone *zone)
}
+/* Returns the latitude of a builtin timezone. */
+double
+icaltimezone_get_latitude (icaltimezone *zone)
+{
+ return zone->latitude;
+}
+
+
+/* Returns the longitude of a builtin timezone. */
+double
+icaltimezone_get_longitude (icaltimezone *zone)
+{
+ return zone->longitude;
+}
+
+
/* Returns the VTIMEZONE component of a timezone. */
icalcomponent*
icaltimezone_get_component (icaltimezone *zone)
diff --git a/libical/src/libical/icaltimezone.h b/libical/src/libical/icaltimezone.h
index 028fd8c10a..2f6487e1e9 100644
--- a/libical/src/libical/icaltimezone.h
+++ b/libical/src/libical/icaltimezone.h
@@ -55,6 +55,12 @@ char* icaltimezone_get_tzid (icaltimezone *zone);
/* Returns the city name of a timezone. */
char* icaltimezone_get_location (icaltimezone *zone);
+/* Returns the latitude of a builtin timezone. */
+double icaltimezone_get_latitude (icaltimezone *zone);
+
+/* Returns the longitude of a builtin timezone. */
+double icaltimezone_get_longitude (icaltimezone *zone);
+
/* Returns the VTIMEZONE component of a timezone. */
icalcomponent* icaltimezone_get_component (icaltimezone *zone);