Return type | Name and parameters |
---|---|
OffsetDateTime
|
clearTime()
Returns an OffsetDateTime with the time portion cleared. |
String
|
format(String pattern)
Formats this date/time with the provided DateTimeFormatter pattern. |
String
|
format(FormatStyle dateTimeStyle)
Formats this date/time in the provided, localized FormatStyle. |
String
|
getDateString()
Formats this date/time with the DateTimeFormatter#ISO_OFFSET_DATE formatter. |
String
|
getDateTimeString()
Formats this date/time with the DateTimeFormatter#ISO_OFFSET_DATE_TIME formatter. |
String
|
getTimeString()
Formats this date/time with the DateTimeFormatter#ISO_OFFSET_TIME formatter. |
OffsetDateTime
|
minus(long seconds)
Returns an OffsetDateTime that is seconds seconds before this date/time.
|
OffsetDateTime
|
next()
Returns an OffsetDateTime one second after this date/time. |
OffsetDateTime
|
parse(CharSequence text, String pattern)
Parse text into an OffsetDateTime using the provided pattern. |
OffsetDateTime
|
plus(long seconds)
Returns an OffsetDateTime that is seconds seconds after this date/time.
|
OffsetDateTime
|
previous()
Returns an OffsetDateTime one second before this date/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
, 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
, sum
, sum
, tap
, toArrayString
, toSpreadMap
, toString
, use
, use
, use
, with
, with
, withTraits
Returns an OffsetDateTime with the time portion cleared.
Formats this date/time with the provided DateTimeFormatter pattern.
pattern
- the formatting patternFormats this date/time in the provided, localized FormatStyle.
dateTimeStyle
- the FormatStyleFormats this date/time with the DateTimeFormatter#ISO_OFFSET_DATE formatter.
Formats this date/time with the DateTimeFormatter#ISO_OFFSET_DATE_TIME formatter.
Formats this date/time with the DateTimeFormatter#ISO_OFFSET_TIME formatter.
Returns an OffsetDateTime that is seconds
seconds before this date/time.
seconds
- the number of seconds to subtractReturns an OffsetDateTime one second after this date/time.
Parse text into an OffsetDateTime using the provided pattern.
text
- String to be parsed to create the date instancepattern
- pattern used to parse the textReturns an OffsetDateTime that is seconds
seconds after this date/time.
seconds
- the number of seconds to addReturns an OffsetDateTime one second before this date/time.
Returns a generally equivalent instance of Calendar. The time value of the returned calendar is truncated to milliseconds and the time zone is based on the offset of this date/time.