summaryrefslogtreecommitdiffabout
path: root/microkde/kdecore/klocale.cpp
authorulf69 <ulf69>2004-09-29 01:43:15 (UTC)
committer ulf69 <ulf69>2004-09-29 01:43:15 (UTC)
commitcd2cb3a9e2ea93909efc9efa16ddd80c2d2b5408 (patch) (unidiff)
treeab401f13f26d7f72ebd2a53deb3a67e97adad8a1 /microkde/kdecore/klocale.cpp
parentaf63a131d742aff8e448e5fe0f3e62b11a4d9a33 (diff)
downloadkdepimpi-cd2cb3a9e2ea93909efc9efa16ddd80c2d2b5408.zip
kdepimpi-cd2cb3a9e2ea93909efc9efa16ddd80c2d2b5408.tar.gz
kdepimpi-cd2cb3a9e2ea93909efc9efa16ddd80c2d2b5408.tar.bz2
needs to be fixed
Diffstat (limited to 'microkde/kdecore/klocale.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kdecore/klocale.cpp32
1 files changed, 28 insertions, 4 deletions
diff --git a/microkde/kdecore/klocale.cpp b/microkde/kdecore/klocale.cpp
index 4960b9a..7bd8a70 100644
--- a/microkde/kdecore/klocale.cpp
+++ b/microkde/kdecore/klocale.cpp
@@ -332,5 +332,13 @@ QString KLocale::formatDateTime(const QDateTime &pDateTime,
332{ 332{
333 return QString( "%1 %2") 333 QString format("%1 %2");
334 .arg( formatDate( pDateTime.date(), shortFormat, intIntDateFormat ) ) 334
335 .arg( formatTime( pDateTime.time(), includeSeconds , intIntDateFormat ) ); 335 if ( intIntDateFormat == Default )
336 format = "%1 %2";
337 else if ( intIntDateFormat == Format1 )
338 format = "%1 %2";
339 else if ( intIntDateFormat == ISODate )
340 format = "%1T%2";
341
342 return format.arg(formatDate( pDateTime.date(), shortFormat, intIntDateFormat ))
343 .arg(formatTime( pDateTime.time(), includeSeconds , intIntDateFormat ));
336} 344}
@@ -339,3 +347,3 @@ QString KLocale::formatDateTime(const QDateTime &pDateTime, IntDateFormat intInt
339{ 347{
340 return formatDateTime(pDateTime, true, intIntDateFormat); 348 return formatDateTime(pDateTime, true, true, intIntDateFormat);
341} 349}
@@ -572,2 +580,18 @@ QTime KLocale::readTime(const QString &intstr, bool seconds, bool *ok) const
572 580
581QDateTime KLocale::readDateTime(const QString &intstr,
582 bool shortFormat,
583 bool includeSeconds,
584 IntDateFormat intIntDateFormat,
585 bool* ok) const
586{
587 bool ok1, ok2;
588
589 QDate m_date = readDate(date, &ok1);
590 QTime m_time = KGlobal::locale()->readTime(time, &ok2);
591 if ((ok1 == false) || (ok2 == false))
592 qDebug("Serializer::extractMeta invalid date or time !!!!!!!!!!!!!");
593
594}
595
596
573bool KLocale::use12Clock() const 597bool KLocale::use12Clock() const