aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2001-06-14 13:55:32 +0800
committerDamon Chaplin <damon@src.gnome.org>2001-06-14 13:55:32 +0800
commit8089ac1639e1bf714bc8c467b0ad679b491e8088 (patch)
tree907a74275127d84372469060d7a861e1e7649ade
parentfdb10dd6d9cdd22079ca27ffee4918b2badb718b (diff)
downloadgsoc2013-evolution-8089ac1639e1bf714bc8c467b0ad679b491e8088.tar
gsoc2013-evolution-8089ac1639e1bf714bc8c467b0ad679b491e8088.tar.gz
gsoc2013-evolution-8089ac1639e1bf714bc8c467b0ad679b491e8088.tar.bz2
gsoc2013-evolution-8089ac1639e1bf714bc8c467b0ad679b491e8088.tar.lz
gsoc2013-evolution-8089ac1639e1bf714bc8c467b0ad679b491e8088.tar.xz
gsoc2013-evolution-8089ac1639e1bf714bc8c467b0ad679b491e8088.tar.zst
gsoc2013-evolution-8089ac1639e1bf714bc8c467b0ad679b491e8088.zip
added functions to get the coords of builtin timezones.
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
-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);