User Tools

Site Tools


l2_report_time_formats

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
l2_report_time_formats [2019/02/22 15:59] – [Duration] emozolyakl2_report_time_formats [2019/02/22 16:26] – [Time format modifiers used in Level2 report builder] emozolyak
Line 1: Line 1:
 ====== Time format modifiers used in Level2 report builder ====== ====== Time format modifiers used in Level2 report builder ======
  
-When you place cells with time values in the report you need to specify format modifier for them. +When you place cells with time values in the report you need to specify format string for them.  
 +Then the special 'token' characters will be looked for to determine how to display the time.  
 + 
 +E.g. in //h:m:s// string for duration h, m and s charachters will be replaced with the duration "weights" in hours, minute and seconds respectively, separated with the ':'. Please refer to the following tables for time and duration format specifiers. 
 {{ ::time_modifiers.png?direct |}} {{ ::time_modifiers.png?direct |}}
-Please refer to the below tables:+Please refer to the below tables for token characters:
  
 ===== Time ===== ===== Time =====
 +
 ==== Locale aware formats ==== ==== Locale aware formats ====
  
Line 43: Line 48:
 |Z ZZ |+12:00 |Offset from UTC as +-HH:mm, +-HHmm, or Z| |Z ZZ |+12:00 |Offset from UTC as +-HH:mm, +-HHmm, or Z|
  
-===== Duration ======+===== Time duration formatting ======
  
 The template string is parsed for moment token characters, which are replaced with the duration's value for each unit type. The moment tokens are: The template string is parsed for moment token characters, which are replaced with the duration's value for each unit type. The moment tokens are:
Line 58: Line 63:
  
 Escape token characters within the template string using square brackets. Escape token characters within the template string using square brackets.
-E.g. this format string  
-<code> 
-"h [hrs], m [min]" 
-</code> 
-<code> 
-2 hrs, 3 mins 
-</code> 
- 
  
 +E.g. 
 +<code> h [hrs], m [min] </code> format string will result in such output: "2 hrs, 3 mins".
l2_report_time_formats.txt · Last modified: 2022/01/15 06:34 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki