26 #include <tqdatetime.h>
28 #include <kaboutdata.h>
29 #include <kapplication.h>
32 #include <kcmdlineargs.h>
37 int main( int argc, char **argv)
39 KAboutData aboutData( "timezone",I18N_NOOP( "KOrganizer Timezone Test"), "0.1");
40 KCmdLineArgs::init(argc,argv,&aboutData);
44 kdDebug(5850) << "KOrganizer TimezoneId: " << KOPrefs::instance()->mTimeZoneId
49 tm *t = localtime( <ime );
51 kdDebug(5850) << "localtime: " << t->tm_hour << ":" << t->tm_min << endl;
53 kdDebug(5850) << "tzname: " << tzname[0] << " " << tzname[1] << endl;
54 kdDebug(5850) << "timezone: " << timezone/3600 << endl;
56 TQTime qtime = TQTime::currentTime();
58 kdDebug(5850) << "TQDateTime::currentTime(): "
59 << qtime.toString( TQt::ISODate ) << endl;
61 kdDebug(5850) << "KLocale::formatTime(): "
62 << KGlobal::locale()->formatTime( qtime ) << endl;
|