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

Spike: Look into std::chrono::tzdb's APIs, work out how much work QTBUG-68812 will take

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.4
    • Core: Date/Time
    • None
    • All
    • 3
    • Foundation Sprint 73, Foundation Sprint 74, Foundation Sprint 75, Foundation Sprint 76, Foundation Sprint 77

    Description

      In preparation for building a QTimeZone backend built on C++20's <tz.h> std::chrono::tzdb, that shall one day replace all the other back-ends and then get integrated into QTimeZone, we need to actually study what tzdb does provide in the way of data.
      In particular:

      • Does it provide an API for accessing transitions ? Asking for the nearest before and after a given date-time would implement two QTimeZone methods; iterating transitions from a given transition would make various things possible.
      • Can it convert from a UTC time to a zone time ? Or at least tell us the zone's offset from UTC at a given UTC time ? How about a given time as expressed by that zone ?
      • What names for a zone does it support ? Full, abbreviation, … Can it configure the answer to distinguish daylight-saving from standard (CEST vs CET) based on a date-time at which to give the name ?

      Attachments

        Issue Links

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

          Activity

            People

              Eddy Edward Welbourne
              Eddy Edward Welbourne
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes