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

Suggestion: Additional output formats for QDateTime::toString()

    XMLWordPrintable

Details

    Description

      Perhaps there should be an option to allow space-padding in front of the hours, so that the hours would reutrn " 1" instead of "01" or "1".

      if you have a list of times in rows and would like their contents to be column-aligned, you can achieve this with the zero padding, but the list will be more friendly, if it looked like this:

       1:32am 
       3:45am 
       7:28am 
      10:52am 
       3:12pm
      

      instead of:

      01:32am 
      03:45am 
      07:28am 
      10:52am 
      03:12pm
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes