26 #include <tqdatetime.h> 28 #include <tdeaboutdata.h> 29 #include <tdeapplication.h> 31 #include <tdelocale.h> 32 #include <tdecmdlineargs.h> 33 #include <tdeglobal.h> 37 int main( int argc, char **argv) 39 TDEAboutData aboutData( "timezone",I18N_NOOP( "KOrganizer Timezone Test"), "0.1"); 40 TDECmdLineArgs::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) << "TDELocale::formatTime(): " 62 << TDEGlobal::locale()->formatTime( qtime ) << endl;
|