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

Relative Time Format in C++ and QML

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 6.9.1, 6.10.0 Beta3
    • Core: Locales (i18n)
    • None
    • All

      In ICU, we can use `RelativeDateTimeFormatter` to get a localized relative date/time string like "2 days ago", "yesterday", "pasado maƱana", in JavaScript, we can also do that by using `Intl.RelativeTimeFormat` API.

      Currently, we cannot directly achieve this by using existing Qt C++ or QML API.

      References:

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

            cnn Qt Core & Network
            blumia Gary Wang
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes