Converts an Instant
to a java.util.Date
.
Converts an Instant
to a java.util.Date
.
Fractions of the instant smaller than milliseconds will be dropped.
the instant, not null
the util date, not null
IllegalArgumentException
if the conversion fails
Converts a ZonedDateTime
to a Calendar
.
Converts a ZonedDateTime
to a Calendar
.
The resulting GregorianCalendar
is pure Gregorian and uses
ISO week definitions, starting on Monday and with 4 days in a minimal week.
Fractions of the instant smaller than milliseconds will be dropped.
the zoned date-time, not null
the calendar, not null
IllegalArgumentException
if the conversion fails
Converts a java.sql.Timestamp
to an Instant
.
Converts a java.sql.Timestamp
to an Instant
.
the SQL timestamp, not null
the instant, not null
Converts a java.util.Date
to an Instant
.
Converts a java.util.Date
to an Instant
.
the util date, not null
the instant, not null
Converts a java.sql.Date
to a LocalDate
.
Converts a java.sql.Date
to a LocalDate
.
the SQL date, not null
the local date, not null
Converts a java.sql.Timestamp
to a LocalDateTime
.
Converts a java.sql.Timestamp
to a LocalDateTime
.
the SQL timestamp, not null
the local date-time, not null
Converts a java.sql.Time
to a LocalTime
.
Converts a java.sql.Time
to a LocalTime
.
the SQL time, not null
the local time, not null
Converts a LocalDate
to a java.sql.Date
.
Converts a LocalDate
to a java.sql.Date
.
the local date, not null
the SQL date, not null
Converts a LocalTime
to a java.sql.Time
.
Converts a LocalTime
to a java.sql.Time
.
the local time, not null
the SQL time, not null
Converts an Instant
to a java.sql.Timestamp
.
Converts an Instant
to a java.sql.Timestamp
.
the instant, not null
the SQL timestamp, not null
Converts a LocalDateTime
to a java.sql.Timestamp
.
Converts a LocalDateTime
to a java.sql.Timestamp
.
the local date-time, not null
the SQL timestamp, not null
Converts a ZoneId
to a TimeZone
.
Converts a ZoneId
to a TimeZone
.
the zone, not null
the time-zone, not null
Converts a TimeZone
to a ZoneId
.
Converts a TimeZone
to a ZoneId
.
the time-zone, not null
the zone, not null
Converts a Calendar
to a ZonedDateTime
.
Converts a Calendar
to a ZonedDateTime
.
Note that GregorianCalendar
supports a Julian-Gregorian cutover
date and ZonedDateTime
does not so some differences will occur.
the calendar, not null
the instant, not null
A set of utilities to assist in bridging the gap to Java 8.
This class is not found in Java SE 8 but provides methods that are.