KF5: Parsing times with timezone abbreviations

Kevin Kofler kevin.kofler at chello.at
Mon Mar 31 01:27:23 BST 2014


about a week ago, I wrote:
> what is the recommended way to parse times with short timezone
> abbreviations, such as "16:00 CET", in Qt 5 / KF5 land? (I am asking
> because this is the format the BBC is using for weather observation times
> in their RSS files.)

One week later, I still didn't get a useful answer to this question. (I also 
tried pinging #kde-devel on IRC and John Layt through the contact form on 
his blog, neither has helped getting an answer either.)

The real-world code where this is needed:
(This patch is against kde-workspace 4.11.7 and so just uses KDateTime, but 
as I said, that is deprecated in KF5, so we will need something different 
for the KF5 port.)

Do I have to conclude that there is no supported way to perform this very 
basic task in KF5? Do we have to start requiring some third-party time-
handling library in the weather plasmoid?

        Kevin Kofler

More information about the kde-core-devel mailing list