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

QML's Date.toLocaleString() and friends are not documented

    XMLWordPrintable

    Details

    • Commits:
      7fddd1c5696bb8043bc7df7df2ba233ce65c1254 97feace2aaaf08075c17ea175a5ed0c12aa40a0d aac2309ade1f4860cfcc55a4d724f16aaf86d661

      Description

      http://qt.gitorious.org/qt/qtdeclarative/blobs/stable/src/qml/qml/qqmllocale.cpp#line152 says that we've got several date/time functions that convert those objects to and from locale-dependent strings:

      void QQmlDateExtension::registerExtension(QV8Engine *engine)
      {
          registerFunction(engine, dateToLocaleStringFunction, toLocaleString);
          registerFunction(engine, dateToLocaleTimeStringFunction, toLocaleTimeString);
          registerFunction(engine, dateToLocaleDateStringFunction, toLocaleDateString);
          registerFunction(engine, dateFromLocaleStringFunction, fromLocaleString);
          registerFunction(engine, dateFromLocaleTimeStringFunction, fromLocaleTimeString);
          registerFunction(engine, dateFromLocaleDateStringFunction, fromLocaleDateString);
          registerFunction(engine, dateTimeZoneUpdatedFunction, timeZoneUpdated);
      }
      

      They should be documented here and here.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              mitch_curtis Mitch Curtis
              Reporter:
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes