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. |
addShutdownHook
, any
, any
, asBoolean
, asType
, average
, collect
, collect
, collect
, contains
, count
, dump
, each
, eachWithIndex
, equals
, every
, every
, find
, find
, findAll
, findAll
, findIndexOf
, findIndexOf
, findIndexValues
, findIndexValues
, findLastIndexOf
, findLastIndexOf
, findResult
, findResult
, flatten
, getAt
, getMetaClass
, getMetaPropertyValues
, getProperties
, grep
, grep
, groupBy
, groupBy
, hasProperty
, identity
, inject
, inject
, inspect
, invokeMethod
, is
, isCase
, iterator
, join
, metaClass
, print
, print
, printf
, printf
, println
, println
, println
, putAt
, respondsTo
, respondsTo
, setMetaClass
, size
, split
, sprintf
, sprintf
, stream
, sum
, sum
, tap
, toArrayString
, toSpreadMap
, toString
, use
, use
, use
, with
, with
, withTraits
Formats this time with the provided DateTimeFormatter pattern.
pattern
- the formatting patternFormats this time in the provided, localized FormatStyle.
timeStyle
- the FormatStyleFormats this time with the DateTimeFormatter#ISO_LOCAL_TIME formatter.
Returns a LocalDateTime of this time and the provided LocalDate.
date
- a LocalDateReturns an OffsetTime of this time and the provided ZoneOffset.
offset
- a ZoneOffsetReturns a LocalTime that is seconds
seconds before this time.
seconds
- the number of seconds to subtractReturns a LocalTime that is one second after this time.
Parse text into a LocalTime using the provided pattern.
text
- String to be parsed to create the date instancepattern
- pattern used to parse the textReturns a LocalTime that is seconds
seconds after this time.
seconds
- the number of seconds to addReturns a LocalTime that is one second before this time.
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.