Class Time

    • Method Detail

      • getDisplayFormats

        public DisplayFormats getDisplayFormats()
        Returns the displayFormats element.
        Returns:
        the displayFormats
      • setIsoWeekday

        public void setIsoWeekday​(IsoWeekDay isoWeekday)
        Sets the ISO day of the week.
        Parameters:
        isoWeekday - ISO day of the week
      • getIsoWeekday

        public IsoWeekDay getIsoWeekday()
        Returns the ISO day of the week with 0 being Sunday and 6 being Saturday.
        Specified by:
        getIsoWeekday in interface IsDefaultTime
        Returns:
        ISO day of the week with 0 being Sunday and 6 being Saturday
      • setRound

        public void setRound​(boolean round)
        If defined, dates will be rounded to the start of this unit.
        Parameters:
        round - if defined, this will override the data minimum.
      • setRound

        public void setRound​(TimeUnit round)
        If defined, dates will be rounded to the start of this unit.
        Parameters:
        round - if defined, this will override the data minimum.
      • getRound

        public TimeUnit getRound()
        If defined, dates will be rounded to the start of this unit.
        Specified by:
        getRound in interface IsDefaultTime
        Returns:
        if defined, dates will be rounded to the start of this unit.
      • setTooltipFormat

        public void setTooltipFormat​(String tooltipFormat)
        The format string to use for the tooltip.
        Parameters:
        tooltipFormat - format string to use for the tooltip.
      • getTooltipFormat

        public String getTooltipFormat()
        The format string to use for the tooltip.
        Specified by:
        getTooltipFormat in interface IsDefaultTime
        Returns:
        the format string to use for the tooltip.
      • setUnit

        public void setUnit​(boolean unit)
        If defined, will force the unit to be a certain type.
        Parameters:
        unit - If defined, will force the unit to be a certain type.
      • setUnit

        public void setUnit​(TimeUnit unit)
        If defined, will force the unit to be a certain type.
        Parameters:
        unit - if defined, will force the unit to be a certain type.
      • getUnit

        public TimeUnit getUnit()
        If defined, will force the unit to be a certain type.
        Specified by:
        getUnit in interface IsDefaultTime
        Returns:
        if defined, will force the unit to be a certain type.
      • setMinUnit

        public void setMinUnit​(TimeUnit unit)
        Sets the minimum display format to be used for a time unit.
        Parameters:
        unit - minimum display format to be used for a time unit.
      • getMinUnit

        public TimeUnit getMinUnit()
        Returns the minimum display format to be used for a time unit.
        Specified by:
        getMinUnit in interface IsDefaultTime
        Returns:
        minimum display format to be used for a time unit.
      • setParser

        public void setParser​(String parser)
        Defined as a string, it is interpreted as a custom format to be used by LUXON to parse the date.
        Parameters:
        parser - defined as a string, it is interpreted as a custom format to be used by LUXON to parse the date.
      • getParser

        public String getParser()
        Defined as a string, it is interpreted as a custom format to be used by LUXON to parse the date.
        Specified by:
        getParser in interface IsDefaultTime
        Returns:
        defined as a string, it is interpreted as a custom format to be used by LUXON to parse the date.