Main types¶
The whenever library provides four main date-time types, each
with its own purpose and behavior:
The available methods differ between these types based on whether they represent exact time or local time:
type |
represents exact time? |
represents local time? |
|---|---|---|
✅ |
❌ |
|
✅ |
✅ |
|
✅ |
✅ |
|
❌ |
✅ |
Exact time methods¶
The exact time classes (Instant, ZonedDateTime,
and OffsetDateTime) share several methods for working with
exact points in time:
Local time methods¶
The local time classes (PlainDateTime, ZonedDateTime,
and OffsetDateTime) share several methods for working with
local date and time values:
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Other methods¶
Several other methods are unique to one or more classes: