Details

    • Type: Specification change (Sub-task)
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.0beta2, 5.2 (plan)
    • Component/s: Server (S)
    • Labels:
      None
    • Team:
      Team A
    • Sprint:
      Sprint 67 (Aug 2020), Sprint 68 (Sep 2020), Sprint 69 (Oct 2020)
    • Story Points:
      1

      Description

      Time formatting macro function

      Time formatting macro function fmttime  will be added to allow custom time formats. It will be usable with {TIME} macro.

      Usage: fmttime(<format>, <time_shift>) 

      • <format>  - mandatory format string, compatible with strftime function formatting.
      • <time_shift>  - the time shift applied to the time before formatting: -<N><time unit> , where
        • <N>  - the number of time units to subtract
        • <time unit>  - the time unit: h (hour), d (day), w (week), M (month) and y (year).

      For example: fmttime(%B,-1M) 

      Number formatting macro function

      Number formatting macro function fmtnum  will be added to control the number of digits printed after the decimal point.

      Usage: fmtnum(<digits>) 

      • <digits>  - the number of digits after decimal point. No trailing zeros will be produced.

      For example: fmtnum(2) 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              viktors.tjarve Viktors Tjarve
              Reporter:
              palivoda Rostislav Palivoda
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: