Singleton
caplin.element.formatter

TimeFormatter

Given a number with an even digit count as an input value, this will insert time separator characters as defined by the locale property ct.i18n.time.format.separator to give two digit groups. For example, given a ct.i18n.time.format.separator with a value of ':', the time 125644 would be formatted as follows: 125644 --> 12:56:44

Constructor Summary

Attributes Name and Description
caplin.element.formatter.TimeFormatter()

Method Summary

Attributes Name and Description
String format(Variant vValue, Map mAttributes)

Splits the input value into 2 digit groups.

Constructor Detail

caplin.element.formatter.TimeFormatter()

Method Detail

String format(Variant vValue, Map mAttributes)

Splits the input value into 2 digit groups.

Attribute Options:

Option Description
size the minimum size of the padded number (defaults to zero)

Parameters
Variant vValue the number (String or Number type).
Map mAttributes the map of attributes.
Returns
a new string split into time groups.