diff options
author | Miguel de Icaza <miguel@nuclecu.unam.mx> | 1998-04-02 15:57:58 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-04-02 15:57:58 +0800 |
commit | f865d886f5aae9279d44f726a0b8093316a40e09 (patch) | |
tree | f397fa0ffb407d2ae4c15c61335bac25cb68d2a0 /calendar/timeutil.c | |
parent | 33b0ab0d0f19c405445315446fd584748538a1ed (diff) | |
download | gsoc2013-evolution-f865d886f5aae9279d44f726a0b8093316a40e09.tar gsoc2013-evolution-f865d886f5aae9279d44f726a0b8093316a40e09.tar.gz gsoc2013-evolution-f865d886f5aae9279d44f726a0b8093316a40e09.tar.bz2 gsoc2013-evolution-f865d886f5aae9279d44f726a0b8093316a40e09.tar.lz gsoc2013-evolution-f865d886f5aae9279d44f726a0b8093316a40e09.tar.xz gsoc2013-evolution-f865d886f5aae9279d44f726a0b8093316a40e09.tar.zst gsoc2013-evolution-f865d886f5aae9279d44f726a0b8093316a40e09.zip |
New main program that uses our new datatypes and objects.
1998-04-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
* main.c: New main program that uses our new datatypes and
objects.
* calendar.c (calendar_load_from_vobject, calendar_load):
Implement loading of vCalendar objects and vCalendar files.
* calobj.c (ical_object_create_from_vobject): Implement loading of
vCalendar event and todo objects.
* timeutil.c (isodate_from_time_t): New function.
* gnome-cal.c, gnome-cal.h: Implement a toplevel widget, derived
from GnomeApp. It holds all of the day views and arbitrates the
display.
svn path=/trunk/; revision=93
Diffstat (limited to 'calendar/timeutil.c')
-rw-r--r-- | calendar/timeutil.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/calendar/timeutil.c b/calendar/timeutil.c index c9e574fbfd..7957751049 100644 --- a/calendar/timeutil.c +++ b/calendar/timeutil.c @@ -29,6 +29,17 @@ time_from_isodate (char *str) return mktime (&my_tm); } +char * +isodate_from_time_t (time_t t) +{ + struct tm *tm; + static char isotime [40]; + + tm = localtime (&t); + strftime (isotime, sizeof (isotime)-1, "%Y%m%dT%H%M%sZ", tm); + return &isotime; +} + time_t time_from_start_duration (time_t start, char *duration) { |