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

List:       kde-commits
Subject:    KDE/kdelibs/kdecore
From:       John Layt <john () layt ! net>
Date:       2010-11-09 19:34:26
Message-ID: 20101109193426.65042AC89B () svn ! kde ! org
[Download RAW message or body]

SVN commit 1194747 by jlayt:

Spilt KCalendarSystem date parsing code out into private KDateTimeParser class.

Also adds support for configurable Short Year Window to apply when parsing the
%y short year, i.e. 10 = 2010.  This defaults to 2000 per the current code, but
now can apply different values depending on calendar system, i.e. Hebrew will
pivot on year 5000 instead.  I still need to calculate the best defaults for
other calendar systems, that will follow in the freeze.

Unlike the KDateTimeFormatter class, this only has the date code so far, the
time code from KLocale will follow later.

All existing date parsing tests pass, I will seperate the tests out and expand
further during the freeze.



 M  +1 -0      CMakeLists.txt  
 M  +91 -335   date/kcalendarsystem.cpp  
 M  +58 -0     date/kcalendarsystem.h  
 M  +4 -4      date/kcalendarsystemcoptic.cpp  
 M  +1 -1      date/kcalendarsystemcopticprivate_p.h  
 M  +5 -5      date/kcalendarsystemethiopian.cpp  
 M  +5 -5      date/kcalendarsystemgregorian.cpp  
 M  +4 -4      date/kcalendarsystemgregorianproleptic.cpp  
 M  +1 -1      date/kcalendarsystemgregorianprolepticprivate_p.h  
 M  +5 -5      date/kcalendarsystemhebrew.cpp  
 M  +5 -5      date/kcalendarsystemhijri.cpp  
 M  +5 -5      date/kcalendarsystemindiannational.cpp  
 M  +5 -5      date/kcalendarsystemjalali.cpp  
 M  +5 -5      date/kcalendarsystemjapanese.cpp  
 M  +5 -5      date/kcalendarsystemjulian.cpp  
 M  +5 -5      date/kcalendarsystemminguo.cpp  
 M  +10 -8     date/kcalendarsystemprivate_p.h  
 M  +5 -5      date/kcalendarsystemthai.cpp  
 M  +3 -3      date/kdatetimeformatter_p.h  
 A             date/kdatetimeparser.cpp   [License: LGPL (v2+)]
 A             date/kdatetimeparser_p.h   [License: LGPL (v2+)]


http://websvn.kde.org/?view=rev&revision=1194747
[prev in list] [next in list] [prev in thread] [next in thread] 

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