This version is out of date, covering development from v9.0.0 to v9.3.0. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

Tinderbox v9 Icon

Interval.format("formatString")


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Function   [other Function type actions]

 Item   [operators of similar scope]

 Formatting   [other Formatting operators]

 Baseline

 9.0.0


Interval.format("formatString")

For this data type formatString strings can use date-type format strings. The function returns Interval as a String formatted as per the quoted date/interval format string formatString.

This supplements the existing format() function. An interval of 00:00 (hours:minutes) is always displayed as an empty string.

Interval.format ("l") and Interval.format ("L") format the intervals according to the current locale. The lower-case "l" format uses the locale's abbreviated form, while "L" spells out the interval in a phrase customised to local usage.