Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.1.0
-
None
Description
One way to approach this would be to define an interface which externals can implement. That could be equivalent to the tzinfo class in python, which is an interface used when creating python datetime objects.
http://docs.python.org/library/datetime.html#datetime.tzinfo
Python does not know about the Olson database for example, but pytz does and it implements the tzinfo class to give access to it.
Similarly, Qt could provide an abstract class QTimeScheme or so which fills the same purpose as the tzinfo does in Python, and the implementation could then be 'outsourced' to the KDE datetime code which already interfaces with the olson database and the windows registry timezone information (or it could be outsourced to another Qt module, which may need to have more regular releases than QtCore because of regular updates to the olsondb).
Attachments
Issue Links
- relates to
-
QTBUG-71 Qt lacks QTimeZone class for getting the local time zone
- Closed