Seconds To Time String Converter

The purpose of this converter is to allow you to take a value in seconds and have it displayed as a time string, such as HH:MM:SS. There are a few properties that let you customize the format.

Properties

Property

Type

Description

ShowHours

How to show the hours segment of the time string. Defaults to Automatic.

ShowMinutes

How to show the minutes segment of the time string. Defaults to Automatic.

ShowSeconds

How to show the seconds segment of the time string. Defaults to Automatic.

Time Segment Visibility

Value

Description

Automatic

The value will be hidden unless it is non-zero or a prior segment is visible.

Never

The segment will never be visible.

Always

The segment will always be visible.

Example

<Label Text="{Binding Value, Converter={Rock:SecondsToTimeStringConverter ShowMinutes=Always}}" />

Last updated

⚙️ Powered by Rock RMS