aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util/timeutil.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-12-16 04:54:06 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-12-16 04:54:06 +0800
commitdd79aa60b7bf7893a58445938c329e4cc308c94b (patch)
tree523e4a3d19e944a998ba28918a502511ccbb0d9e /calendar/cal-util/timeutil.c
parent44db6fc88d96e0808c4e7b866c4f60f4853b51de (diff)
downloadgsoc2013-evolution-dd79aa60b7bf7893a58445938c329e4cc308c94b.tar
gsoc2013-evolution-dd79aa60b7bf7893a58445938c329e4cc308c94b.tar.gz
gsoc2013-evolution-dd79aa60b7bf7893a58445938c329e4cc308c94b.tar.bz2
gsoc2013-evolution-dd79aa60b7bf7893a58445938c329e4cc308c94b.tar.lz
gsoc2013-evolution-dd79aa60b7bf7893a58445938c329e4cc308c94b.tar.xz
gsoc2013-evolution-dd79aa60b7bf7893a58445938c329e4cc308c94b.tar.zst
gsoc2013-evolution-dd79aa60b7bf7893a58445938c329e4cc308c94b.zip
Removed unused function, a relic from Gnomecal.
2000-12-15 Federico Mena Quintero <federico@helixcode.com> * cal-util/timeutil.[ch] (time_from_isodate): Removed unused function, a relic from Gnomecal. svn path=/trunk/; revision=7054
Diffstat (limited to 'calendar/cal-util/timeutil.c')
-rw-r--r--calendar/cal-util/timeutil.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/calendar/cal-util/timeutil.c b/calendar/cal-util/timeutil.c
index a2e1d7a38d..933230872b 100644
--- a/calendar/cal-util/timeutil.c
+++ b/calendar/cal-util/timeutil.c
@@ -12,40 +12,6 @@
-#define digit_at(x,y) (x [y] - '0')
-
-time_t
-time_from_isodate (char *str)
-{
- struct tm my_tm;
- time_t t;
-
- if (strlen (str) < 14)
- return -1;
-
- my_tm.tm_year = (digit_at (str, 0) * 1000 + digit_at (str, 1) * 100 +
- digit_at (str, 2) * 10 + digit_at (str, 3)) - 1900;
-
- my_tm.tm_mon = digit_at (str, 4) * 10 + digit_at (str, 5) - 1;
- my_tm.tm_mday = digit_at (str, 6) * 10 + digit_at (str, 7);
- my_tm.tm_hour = digit_at (str, 9) * 10 + digit_at (str, 10);
- my_tm.tm_min = digit_at (str, 11) * 10 + digit_at (str, 12);
- my_tm.tm_sec = digit_at (str, 13) * 10 + digit_at (str, 14);
- my_tm.tm_isdst = -1;
-
- t = mktime (&my_tm);
-
- if (str [15] == 'Z')
-#if defined(HAVE_TM_GMTOFF)
- t += my_tm.tm_gmtoff
-#elif defined(HAVE_TIMEZONE)
- t -= timezone
-#endif
- ;
-
- return t;
-}
-
void
print_time_t (time_t t)
{