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_OFFSET_TIME formatter. |
OffsetDateTime
|
leftShift(LocalDate date)
Returns an OffsetDateTime of this time and the provided LocalDate. |
OffsetTime
|
minus(long seconds)
Returns an OffsetTime that is seconds seconds before this time.
|
OffsetTime
|
next()
Returns an OffsetTime that is one second after this time. |
OffsetTime
|
parse(CharSequence text, String pattern)
Parse text into an OffsetTime using the provided pattern. |
OffsetTime
|
plus(long seconds)
Returns an OffsetTime that is seconds seconds after this time.
|
OffsetTime
|
previous()
Returns an OffsetTime 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
, 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
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_OFFSET_TIME formatter.
Returns an OffsetDateTime of this time and the provided LocalDate.
date
- a LocalDateReturns an OffsetTime that is seconds
seconds before this time.
seconds
- the number of seconds to subtractReturns an OffsetTime that is one second after this time.
Parse text into an OffsetTime using the provided pattern.
text
- String to be parsed to create the date instancepattern
- pattern used to parse the textReturns an OffsetTime that is seconds
seconds after this time.
seconds
- the number of seconds to addReturns an OffsetTime that is one second before this time.
Returns a generally equivalent instance of Calendar. The date value of the returned calendar is now, the time value is truncated to milliseconds, and the time zone is based on the offset of this time.