<commit_before>#include <kaboutdata.h>
#include <kapplication.h>
#include <kdebug.h>
#include <klocale.h>
#include <kcmdlineargs.h>

#include "koprefs.h"

int main(int argc,char **argv)
{
  KAboutData aboutData("timezone",I18N_NOOP("KOrganizer Timezone Test"),"0.1");
  KCmdLineArgs::init(argc,argv,&aboutData);

  KApplication app;

  kdDebug() << "TimezoneId: " << KOPrefs::instance()->mTimeZoneId << endl;
}<commit_msg>Print time zone information.<commit_after>#include <time.h>

#include <qdatetime.h>

#include <kaboutdata.h>
#include <kapplication.h>
#include <kdebug.h>
#include <klocale.h>
#include <kcmdlineargs.h>
#include <kglobal.h>

#include "koprefs.h"

int main(int argc,char **argv)
{
  KAboutData aboutData("timezone",I18N_NOOP("KOrganizer Timezone Test"),"0.1");
  KCmdLineArgs::init(argc,argv,&aboutData);

  KApplication app;

  kdDebug() << "KOrganizer TimezoneId: " << KOPrefs::instance()->mTimeZoneId
            << endl;
  
  time_t ltime;
  ::time( &ltime );
  tm *t = localtime( &ltime );

  kdDebug() << "localtime: " << t->tm_hour << ":" << t->tm_min << endl;

  kdDebug() << "tzname: " << tzname[0] << " " << tzname[1] << endl;
  kdDebug() << "timezone: " << timezone/3600 << endl;
  
  QTime qtime = QTime::currentTime();
  
  kdDebug() << "QDateTime::currentTime(): "
            << qtime.toString( Qt::ISODate ) << endl;

  kdDebug() << "KLocale::formatTime(): "
            << KGlobal::locale()->formatTime( qtime ) << endl;
}
{'fraction_non_alphanumeric': 0.19533927347498287, 'fraction_numerical': 0.009595613433858808, 'mean_word_length': 4.615384615384615, 'pattern_counts': {'":': 1, '<': 66, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4476410', 'n_tokens_mistral': 570, 'n_tokens_neox': 555, 'n_words': 99}