Format
Description
Formats numbers, time and timestamp.
Format on Vector will result in a comma-separated list of formatted values.
E.g.: Device Link Car, Fronius Symo
Format on GroupedScalar will result in a comma-separated list of group identifier, double-quote and formatted value; the group identifier is rendered as device name, if grouped by device, else the time span index is taken.
E.g.: 'Device Link Car': 1035, 'Fronius Symo': 8012
Format on GroupedVector will result in a slash-separated list of group identifier, double-quote and comma-separated formatted values; the group identifier is rendered as device name, if grouped by device, else the time span index is taken.
E.g.: 'Device Link Car': 1035, 2012, 3097 / 'Fronius Symo': 8012
Signatures
#scalar-vector-groupedscalar-groupedvector-less-than-timespan-greater-than-or-adaptive-or-seconds-or
Number/Event | Text
Format pattern semantic, see Java's DecimalFormat
Time | Text
Format pattern semantic, see Java's SimpleDateFormat
Timespan | Text
Format pattern semantic, see Java's SimpleDateFormat
Timespan | '(ADAPTIVE|SECONDS|MINUTES|HOURS|DAYS):(WORD|SYMBOL)'
Format pattern semantic
ADAPATIVE
Means that it chooses the time unit automatically depending on the value size
SECONDS
Redners the value in seconds.
MINUTES
Renders the value in minutes.
HOURS
Renders the value in hours.
DAYS
Renders the value days.
WORD
Is in the word form (e.g. Hours)
SYMBOL
Is in the abbreviation of the unit (e.g. h)
Examples
Format the Result of the AVG($Consumption) function (which is a Scalar<Number) in format '#,##0'.
Format the Timestamp of the $Event (which is Scalar<Event>) as hours and minutes.
Fromat the resulting Timestamp as Hours suffixed with the word Hours.
Last updated