diff options
Diffstat (limited to 'libical/src')
-rw-r--r-- | libical/src/libical/icaltimezone.c | 16 | ||||
-rw-r--r-- | libical/src/libical/icaltimezone.h | 6 |
2 files changed, 22 insertions, 0 deletions
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); |