Package com.independentsoft.office.odf.styles

# Class Hours

java.lang.Object
com.independentsoft.office.odf.styles.Hours

public class Hours extends Object
Represents the hours are displayed as part of a date or time.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Hours()`
  Initializes a new instance of the Hours class.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Hours`
  `clone()`
  Creates a new object that is a deep copy of the current instance.
  `DisplayFormat`
  `getDisplayFormat()`
  Gets the display format.
  `void`
  `setDisplayFormat​(DisplayFormat format)`
  Sets the display format.
  `String`
  `toString()`
  Converts the value of the current Hours object to its equivalent string representation.

  ### Methods inherited from class java.lang.Object

  `equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### Hours

    public Hours()
    Initializes a new instance of the Hours class.

- ## Method Details

  - ### clone

    public Hours clone()
    Creates a new object that is a deep copy of the current instance.
    Overrides:
      `clone` in class `Object`
    Returns:
      A new object that is a copy of this instance.

  - ### toString

    public String toString()
    Converts the value of the current Hours object to its equivalent string representation.
    Overrides:
      `toString` in class `Object`
    Returns:
      the string

  - ### getDisplayFormat

    public DisplayFormat getDisplayFormat()
    Gets the display format.
    Returns:
      the display format

  - ### setDisplayFormat

    public void setDisplayFormat​(DisplayFormat format)
    Sets the display format.
    Parameters:
      `format` - the new display format