Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-23509

A mechanism for time zone handling in Qt 5.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.2.0
    • 5.1.0
    • Core: Date/Time
    • 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.

      http://pytz.sourceforge.net/

      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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              johnlayt John Layt
              stephen.kelly Stephen Kelly (Unused account) (Inactive)
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes