aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util/timeutil.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-08-29 07:17:08 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-08-29 07:17:08 +0800
commita4789a176c9b256e018e31ac363ee9847da55500 (patch)
tree36d28ac1684ef1c0c0bce859760d71aee4f9bdc1 /calendar/cal-util/timeutil.c
parentb807448dce5d356dcd1b4ea6133abf104564e44b (diff)
downloadgsoc2013-evolution-a4789a176c9b256e018e31ac363ee9847da55500.tar
gsoc2013-evolution-a4789a176c9b256e018e31ac363ee9847da55500.tar.gz
gsoc2013-evolution-a4789a176c9b256e018e31ac363ee9847da55500.tar.bz2
gsoc2013-evolution-a4789a176c9b256e018e31ac363ee9847da55500.tar.lz
gsoc2013-evolution-a4789a176c9b256e018e31ac363ee9847da55500.tar.xz
gsoc2013-evolution-a4789a176c9b256e018e31ac363ee9847da55500.tar.zst
gsoc2013-evolution-a4789a176c9b256e018e31ac363ee9847da55500.zip
We no longer need time_from_icaltimetype as libical has the API for this
2000-08-28 JP Rosevear <jpr@helixcode.com> * cal-util/timeutil.h: We no longer need time_from_icaltimetype as libical has the API for this * cal-util/timeutil.c: ditto * cal-util/cal-recur.c: Replace time_from_icaltimetype with icaltime_as_timet * gui/calendar-model.c: ditto * gui/event-editor.c: ditto * gui/gnome-cal.c: ditto svn path=/trunk/; revision=5090
Diffstat (limited to 'calendar/cal-util/timeutil.c')
-rw-r--r--calendar/cal-util/timeutil.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/calendar/cal-util/timeutil.c b/calendar/cal-util/timeutil.c
index bbce9b82d6..1281e6fe92 100644
--- a/calendar/cal-util/timeutil.c
+++ b/calendar/cal-util/timeutil.c
@@ -12,37 +12,6 @@
-/**
- * time_from_icaltimetype:
- * @itt: A struct icaltimetype value.
- *
- * Converts a struct icaltimetype value into a time_t value. Does not deal with
- * timezones.
- *
- * Return value: A time_t value.
- **/
-time_t
-time_from_icaltimetype (struct icaltimetype itt)
-{
- struct tm tm;
-
- /* FIXME: this does not handle timezones */
-
- memset (&tm, 0, sizeof (tm));
-
- tm.tm_year = itt.year - 1900;
- tm.tm_mon = itt.month - 1;
- tm.tm_mday = itt.day;
-
- if (!itt.is_date) {
- tm.tm_hour = itt.hour;
- tm.tm_min = itt.minute;
- tm.tm_sec = itt.second;
- }
-
- return mktime (&tm);
-}
-
#define digit_at(x,y) (x [y] - '0')
time_t