PATCH: time-only support for KDateTime (used in Nepomuk-KDE)
Sebastian TrĂ¼g
strueg at mandriva.com
Thu Mar 15 12:02:01 GMT 2007
Hi folks,
Aaron asked me if KDateTime already provided the date and time conversion
functionality from KMetaData::DateTime. Actually the ISO8601 support in
KDateTime is nearly perfect. The only thing missing is the support for
time-only instances and parsing of date- and time-only strings like
YYYY-MM-DD
the attached patch does that. However, it breaks one unit test: with my patch
KDateTime does create date-only ISO8601 strings like the one above which is
perfectly valid as far as I understood ISO8601. The current implementation
appends the SOD time (00:00:00.000) to a date-only string. This would not be
that big a problem for Nepomuk-KDE but just a little ugly IMHO.
Apart from the issue just described nothing really changes. So how about this?
Cheers,
Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdatetime-timeonly.diff
Type: text/x-diff
Size: 20098 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070315/9904221e/attachment.diff>
More information about the kde-core-devel
mailing list