[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Proposed new kdelibs time zone classes
From:       David Jarvie <lists () astrojar ! org ! uk>
Date:       2005-10-16 23:07:52
Message-ID: 200510170007.52883.lists () astrojar ! org ! uk
[Download RAW message or body]

Here is my proposed new code for the kdelibs/kdecore time zone classes. I've 
attached new code rather than diffs since the changes are very substantial 
(although some parts of the existing code is still retained). The aim of the 
changes is to provide base classes to use for deriving non-system time zone 
classes. In particular, this will form a basis for implementing time zone 
classes for iCalendar time zone data, which should allow some long standing 
bugs in kdepim to be fixed. The current time zone implementation is only 
really suited to dealing with system time zones, not time zone information 
from other sources.

See the discussion on 29th and 30th September in this mailing list 
(http://lists.kde.org/?l=kde-core-devel&m=112800361918888&w=2 etc.) for more 
details.

Note that I haven't yet tested the KTzfile* classes - I'm in the process of 
doing that now. The system time zone handling doesn't depend on them, so they 
aren't so important.

Can I commit?

-- 
David Jarvie.
KAlarm author and maintainer.
http://www.astrojar.org.uk/linux/kalarm.html

["ktimezone.tar.gz" (application/x-tgz)]
["conf.diff" (text/x-diff)]

--- configure.in.in	2005-10-08 16:53:52.000000000 +0100
+++ /tmp/configure.in.in	2005-10-16 23:44:54.926491704 +0100
@@ -378,3 +378,15 @@
 
 KDE_INIT_DOXYGEN([The KDE API Reference], [Version $VERSION])
 KDE_CHECK_BINUTILS
+
+AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,	
+  AC_TRY_COMPILE([
+    #include <time.h>
+  ], [
+    struct tm tm;
+    tm.tm_gmtoff = 1;
+  ], ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no))
+if test $ac_cv_struct_tm_gmtoff = yes; then
+  AC_DEFINE(HAVE_TM_GMTOFF, 1, [Define if you have a tm_gmtoff member in struct tm])
+fi
+


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic