formatDuration
Format a lapse of time in seconds/minutes/hours/days. Equivalent to DateHelper.distance_of_time_in_words in Ruby and Date.toDuration().humanized() in format.js
| Tag Information | |
|---|---|
| Tag Class | org.loom.tags.messages.FormatDurationTag | 
| Body Content | scriptless | 
| Dynamic Attributes | false | 
| Example | <l:formatDuration value="${myDurationInMillis}"/> | 
                                    
Attributes
| Name | Description | Flags | 
|---|---|---|
| value | interval to format, in milliseconds | 
                                             requiredrtexprvalue 
                                         | 
                                    
| maxUnits | the maximum number of units to use (years, months, days, etc). Default is 2 | 
                                             rtexprvalue 
                                         | 
                                    
| scope | If var is not null, this is the scope where the value will be stored.
                                            Possible values are page (default), request,
                                            session and application.
                                         | 
                                        
                                             rtexprvalue 
                                         | 
                                    
| var | if not null, the value will be stored as an attribute instead of rendered in the page | 
                                             rtexprvalue 
                                         |