Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-18835

Human-readable time periods in SCORM reports

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4
    • 1.9.9
    • SCORM, Usability
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

    Description

      Currently SCORM reports exhibit time periods notation format, which is understandable but yet not so user-friendly: P1DT1H2M32.1S for example. Using some complex regular expressions, we can replace this notation by usual one: 1 day 1 hour 2 minutes 32.1 sec. The attached patch does this by adding a formatter function and calling it in every place where report prints out date/time periods. The patch is applied with -p0.

      Attachments

        1. scorm_format_unittest.patch
          2 kB
        2. scorm_time.patch
          4 kB
        3. scorm_time2.patch
          5 kB
        4. Screenshot.png
          Screenshot.png
          12 kB

        Issue Links

          Activity

            People

              danmarsden Dan Marsden
              argentum Vlas Voloshin
              Dan Marsden, Matteo Scaramuccia, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie, Huong Nguyen, Barbara Ramiro, Bas Brands, Mathew May, David Woloszyn, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8/Jun/10