From 31675e8d99ca20c77f322f69bccc8eb64e4ca63e Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 23 Oct 2001 17:40:55 +0000 Subject: convert an icaltimetype to a tm (tm_to_icaltimetype): vice versa 2001-10-23 JP Rosevear * cal-util/timeutil.c (icaltimetype_to_tm): convert an icaltimetype to a tm (tm_to_icaltimetype): vice versa * cal-util/timeutil.h: new protos * conduits/calendar/calendar-conduit.c: replace all mktime and localtime calls (except for debugging calls) * conduits/todo/todo-conduit.c: ditto (comp_from_remote_record): make sure the completed time is in UTC svn path=/trunk/; revision=13946 --- calendar/cal-util/timeutil.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'calendar/cal-util/timeutil.h') diff --git a/calendar/cal-util/timeutil.h b/calendar/cal-util/timeutil.h index 1ae0b45f72..2ca61b45a2 100644 --- a/calendar/cal-util/timeutil.h +++ b/calendar/cal-util/timeutil.h @@ -109,4 +109,11 @@ time_t time_day_end_with_zone (time_t time, icaltimezone *zone); void time_to_gdate_with_zone (GDate *date, time_t time, icaltimezone *zone); +/************************************************************************** + * struct tm manipulation + **************************************************************************/ + +struct tm icaltimetype_to_tm (struct icaltimetype *itt); +struct icaltimetype tm_to_icaltimetype (struct tm *tm, gboolean is_date); + #endif -- cgit v1.2.3