Return type | Name and parameters |
---|---|
ZonedDateTime
|
clearTime()
Returns an ZonedDateTime 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_LOCAL_DATE formatter and appends the zone's short name, e.g. |
String
|
getDateTimeString()
Formats this date/time with the DateTimeFormatter#ISO_LOCAL_DATE_TIME formatter and appends the zone's short name, e.g. |
String
|
getTimeString()
Formats this date/time with the DateTimeFormatter#ISO_LOCAL_TIME formatter and appends the zone's short name, e.g. |
ZonedDateTime
|
minus(long seconds)
Returns a ZonedDateTime that is seconds seconds before this date/time.
|
ZonedDateTime
|
next()
Returns a ZonedDateTime that is one second after this date/time. |
ZonedDateTime
|
parse(CharSequence text, String pattern)
Parse text into a ZonedDateTime using the provided pattern. |
ZonedDateTime
|
plus(long seconds)
Returns a ZonedDateTime that is seconds seconds after this date/time.
|
ZonedDateTime
|
previous()
Returns a ZonedDateTime that is 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
, 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
Returns an ZonedDateTime 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_LOCAL_DATE formatter
and appends the zone's short name, e.g. 2018-03-10EST
.
Formats this date/time with the DateTimeFormatter#ISO_LOCAL_DATE_TIME formatter
and appends the zone's short name, e.g. 2018-03-10T14:34:55.144EST
.
Formats this date/time with the DateTimeFormatter#ISO_LOCAL_TIME formatter
and appends the zone's short name, e.g. 14:34:55.144EST
.
Returns a ZonedDateTime that is seconds
seconds before this date/time.
seconds
- the number of seconds to subtractReturns a ZonedDateTime that is one second after this date/time.
Parse text into a ZonedDateTime using the provided pattern.
text
- String to be parsed to create the date instancepattern
- pattern used to parse the textReturns a ZonedDateTime that is seconds
seconds after this date/time.
seconds
- the number of seconds to addReturns a ZonedDateTime that is 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 determined by the zone of this date/time.