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

Consider adding a QDateTimeFormatter class

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 6.5.0 Beta2
    • Core: Date/Time
    • None
    • All

    Description

      The QDate.format function is not very efficient when you have to format a large number of dates, because every time it is called it always has to parse the string that contains the format.  
      Java has the DateTimeFormatter class that allows the format string to be set once . The instance then is passed to the Date::format function.
      The date format is generally always the same, so adding a QDateTimeFormatter class would easily improve the performance of applications that must format many dates.

      See: https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html

      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
              domezuk Domenico Zucchetti
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes