Package: java.time

## Class LocalTime

- - ### Methods Summary

    Methods
    Return type | Name and parameters
    --- | ---
    `String` | `format(String pattern)` Formats this time with the provided DateTimeFormatter pattern.
    `String` | `format(FormatStyle timeStyle)` Formats this time in the provided, localized FormatStyle.
    `String` | `getTimeString()` Formats this time with the DateTimeFormatter#ISO_LOCAL_TIME formatter.
    `LocalDateTime` | `leftShift(LocalDate date)` Returns a LocalDateTime of this time and the provided LocalDate.
    `OffsetTime` | `leftShift(ZoneOffset offset)` Returns an OffsetTime of this time and the provided ZoneOffset.
    `LocalTime` | `minus(long seconds)` Returns a LocalTime that is `seconds` seconds before this time.
    `LocalTime` | `next()` Returns a LocalTime that is one second after this time.
    `LocalTime` | `parse(CharSequence text, String pattern)` Parse text into a LocalTime using the provided pattern.
    `LocalTime` | `plus(long seconds)` Returns a LocalTime that is `seconds` seconds after this time.
    `LocalTime` | `previous()` Returns a LocalTime that is one second before this time.
    `Calendar` | `toCalendar()` Returns a generally equivalent instance of Calendar.
    `Date` | `toDate()` Returns a generally equivalent instance of Date.

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

    `addShutdownHook`, `any`, `any`, `asBoolean`, `asType`, `collect`, `collect`, `collect`, `dump`, `each`, `eachMatch`, `eachMatch`, `eachWithIndex`, `every`, `every`, `find`, `find`, `findAll`, `findAll`, `findIndexOf`, `findIndexOf`, `findIndexValues`, `findIndexValues`, `findLastIndexOf`, `findLastIndexOf`, `findResult`, `findResult`, `getAt`, `getMetaClass`, `getMetaPropertyValues`, `getProperties`, `grep`, `grep`, `hasProperty`, `identity`, `inject`, `inject`, `inspect`, `invokeMethod`, `is`, `isCase`, `isNotCase`, `iterator`, `metaClass`, `print`, `print`, `printf`, `printf`, `println`, `println`, `println`, `putAt`, `respondsTo`, `respondsTo`, `setMetaClass`, `split`, `sprintf`, `sprintf`, `stream`, `tap`, `toString`, `use`, `use`, `use`, `with`, `with`, `withCloseable`, `withStream`, `withTraits`

  - #### Methods inherited from interface java.lang.Comparable

    `numberAwareCompareTo`

  - #### Methods inherited from interface java.time.temporal.Temporal

    `downto`, `downto`, `rightShift`, `upto`, `upto`

  - #### Methods inherited from interface java.time.temporal.TemporalAccessor

    `getAt`

- - ### Methods Detail

    - #### public String format(String pattern)

      Formats this time with the provided DateTimeFormatter pattern.

      Parameters:
        `pattern` - the formatting pattern
      Returns:
        a formatted String
      Since:
        2.5.0
      See Also:
        DateTimeFormatter

    - #### public String format(FormatStyle timeStyle)

      Formats this time in the provided, localized FormatStyle.

      Parameters:
        `timeStyle` - the FormatStyle
      Returns:
        a formatted String
      Since:
        2.5.0
      See Also:
        DateTimeFormatter

    - #### public String getTimeString()

      Formats this time with the DateTimeFormatter#ISO_LOCAL_TIME formatter.

      Returns:
        a formatted String
      Since:
        2.5.0
      See Also:
        DateTimeFormatter

    - #### public LocalDateTime leftShift(LocalDate date)

      Returns a LocalDateTime of this time and the provided LocalDate.

      Parameters:
        `date` - a LocalDate
      Returns:
        a LocalDateTime
      Since:
        2.5.0

    - #### public OffsetTime leftShift(ZoneOffset offset)

      Returns an OffsetTime of this time and the provided ZoneOffset.

      Parameters:
        `offset` - a ZoneOffset
      Returns:
        an OffsetTime
      Since:
        2.5.0

    - #### public LocalTime minus(long seconds)

      Returns a LocalTime that is `seconds` seconds before this time.

      Parameters:
        `seconds` - the number of seconds to subtract
      Returns:
        a LocalTime
      Since:
        2.5.0

    - #### public LocalTime next()

      Returns a LocalTime that is one second after this time.

      Returns:
        a LocalTime
      Since:
        2.5.0

    - #### public LocalTime parse(CharSequence text, String pattern)

      Parse text into a LocalTime using the provided pattern.

      Parameters:
        `text` - String to be parsed to create the date instance
        `pattern` - pattern used to parse the text
      Returns:
        a LocalTime representing the parsed text
      Since:
        2.5.0
      See Also:
        DateTimeFormatter
        LocalTime#parse(java.lang.CharSequence, java.time.format.DateTimeFormatter)

    - #### public LocalTime plus(long seconds)

      Returns a LocalTime that is `seconds` seconds after this time.

      Parameters:
        `seconds` - the number of seconds to add
      Returns:
        a LocalTime
      Since:
        2.5.0

    - #### public LocalTime previous()

      Returns a LocalTime that is one second before this time.

      Returns:
        a LocalTime
      Since:
        2.5.0

    - #### public Calendar toCalendar()

      Returns a generally equivalent instance of Calendar. The day-month-year value of the returned calendar is today, the time is truncated to milliseconds, and the time zone is the current system default.

      Returns:
        a java.util.Calendar
      Since:
        2.5.0

    - #### public Date toDate()

      Returns a generally equivalent instance of Date. The day-month-year value of the returned date is today and the time is truncated to milliseconds.

      Returns:
        a java.util.Date
      Since:
        2.5.0