Skip navigation links
LuciadLightspeed
2023.1.16
com.luciad.text

LuciadLightspeedClass TLcdDurationFormat

    • Field Detail

      • MINIMUM_PATTERN

        public static final String MINIMUM_PATTERN
        This pattern only displays the items with a value above 0.
        d {d } h {h } m {m } s.f {s}
        See Also:
        Constant Field Values
      • LONG_SEPARATORS_PATTERN

        public static final String LONG_SEPARATORS_PATTERN
        Same as MINIMUM_PATTERN but with longer separators, with a distinction between the singular form and the plural one.
        d {day :days } h {hour :hours } m {minute :minutes } s.f {second :seconds }
        See Also:
        Constant Field Values
      • NON_ZERO_ONLY

        public static final String NON_ZERO_ONLY
        This pattern displays every element and trims the expression left and right the values equal to 0.
        DD {d } HH {h } MM {m } SS.f {s} TLR
        See Also:
        Constant Field Values
    • Constructor Detail

      • TLcdDurationFormat

        public TLcdDurationFormat()
        Creates a new TLcdDurationFormat that will use a default pattern and Locale.
      • TLcdDurationFormat

        public TLcdDurationFormat(String aPattern)
        Creates a new TLcdDurationFormat that will use the specified pattern and a default Locale.
        Parameters:
        aPattern - is the string representing the formatting pattern, as defined in the class documentation.
        Throws:
        IllegalArgumentException - When aPattern is not a valid pattern.
        NullPointerException - when aPattern is null.
      • TLcdDurationFormat

        public TLcdDurationFormat(String aPattern,
                                  Locale aLocale)
        Creates a new TLcdDurationFormat that will use the specified pattern and the specified locale.
        Parameters:
        aPattern - is the string representing the formatting pattern, as defined in the class documentation.
        aLocale - the Locale to be used to parse and format.
        Throws:
        IllegalArgumentException - When aPattern is not a valid pattern.
        NullPointerException - when aPattern or aLocale is null.
LuciadLightspeed
2023.1.16