aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/timeutil.c
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1998-04-04 10:44:29 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-04 10:44:29 +0800
commitf4295ffe09c2994a93eff4d4c73505f2bc291a59 (patch)
treeea15367750bae25c44a3fa79d241f5fb43ebad54 /calendar/timeutil.c
parent1be7718e7d14edf3b4501de53fd600af1a53a156 (diff)
downloadgsoc2013-evolution-f4295ffe09c2994a93eff4d4c73505f2bc291a59.tar.gz
gsoc2013-evolution-f4295ffe09c2994a93eff4d4c73505f2bc291a59.tar.zst
gsoc2013-evolution-f4295ffe09c2994a93eff4d4c73505f2bc291a59.zip
Lots -mig
svn path=/trunk/; revision=103
Diffstat (limited to 'calendar/timeutil.c')
-rw-r--r--calendar/timeutil.c26
1 files changed, 25 insertions, 1 deletions
diff --git a/calendar/timeutil.c b/calendar/timeutil.c
index b860c84b09..3a78bf2b4f 100644
--- a/calendar/timeutil.c
+++ b/calendar/timeutil.c
@@ -41,6 +41,14 @@ print_time_t (time_t t)
tm->tm_hour, tm->tm_min, tm->tm_sec);
}
+int
+get_time_t_hour (time_t t)
+{
+ struct tm *tm;
+
+ tm = localtime (&t);
+ return tm->tm_hour;
+}
char *
isodate_from_time_t (time_t t)
@@ -50,7 +58,7 @@ isodate_from_time_t (time_t t)
tm = localtime (&t);
strftime (isotime, sizeof (isotime)-1, "%Y%m%dT%H%M%sZ", tm);
- return &isotime;
+ return isotime;
}
time_t
@@ -79,3 +87,19 @@ format_simple_hour (int hour, int use_am_pm)
return buf;
}
+
+time_t
+time_add_week (time_t time, int weeks)
+{
+}
+
+time_t
+time_add_day (time_t time, int weeks)
+{
+}
+
+time_t
+time_add_year (time_t time, int years)
+{
+}
+