Keys for Duration Control Labels

This section lists the resource keys for the labels of duration controls.

For example, duration_label_years substitutes "Years" in the text input field.
Resource Key Reference Value Description
duration_label_years Years Labels the text input field as "Years".
duration_label_months Months Labels the text input field as "Months".
duration_label_days Days Labels the text input field as "Days".
duration_label_hours Hours Labels the text input field as "Hours".
duration_label_minutes Minutes Labels the text input field as "Minutes".
duration_label_seconds Seconds Labels the text input field as "Seconds".
duration_label_​milliseconds Milliseconds Labels the text input field as "Milliseconds".
format_duration_years {0} years Used for the text representation of duration, where {0} is greater than 1.

For example: "2 years"

format_duration_months {0} months Used for the text representation of duration, where {0} is greater than 1
format_duration_days {0} days Used for the text representation of duration, where {0} is greater than 1.
format_duration_hours {0} hours Used for the text representation of duration, where {0} is greater than 1.
format_duration_minutes {0} minutes Used for the text representation of duration, where {0} is greater than 1.
format_duration_seconds {0} seconds Used for the text representation of duration, where {0} is greater than 1.
format_duration_​milliseconds {0} milliseconds Used for the text representation of duration, where {0} is greater than 1.
format_duration_​years_singular {0} year Used for the text representation of duration, where {0} is equal to 1.
format_duration_​months_singular {0} month Used for the text representation of duration, where {0} is equal to 1
format_duration_​days_singular {0} day Used for the text representation of duration, where {0} is equal to 1.
format_duration_​hours_singular {0} hour Used for the text representation of duration, where {0} is equal to 1.
format_duration_​minutes_singular {0} minute Used for the text representation of duration, where {0} is equal to 1.
format_duration_​seconds_singular {0} second Used for the text representation of duration, where {0} is equal to 1.
format_duration_​milliseconds_singular {0} millisecond Used for the text representation of duration, where {0} is equal to 1.
duration_separator , Separates the values in the text representation of duration.
duration_order yMdHmsS The order in which the specific duration units appear in the text representation of duration, where y = years, M = months, d = days, H = hours, m = minutes, s = seconds, S = milliseconds.
duration_items_​display_sep \ /\ Separates the values in the text representation of list items.

Note: All the other list controls use "items_display_sep" as defined in List Control Keys . This new separator is necessary to separate duration items in a list, because the "duration_separator" that formats a duration value also uses a "," in the base bundle.

Duration Control Labels