Short answer, this type is not in Java-8.
The combination of calendar date and time zone is doubtful, at least, to say. The reason is that time zones are designed to work by date and time. Since time zones are responsible for translating global moments / moments and local timestamps (including date and time), the combination of only date and zone is simply not complete to enable such conversions.
The only type I know of is the type
xs: date
in XML Schema, which explicitly allows for an additional offset (which is smaller than the time zone, because it does not store daylight saving rules or historical offsets). In my opinion, the W3C consortium introduced this type for symmetry reasons rather than for real-time tasks. JSR-310 (which introduced the java.time package in Java-8), originally designed to create a similar type of OffsetDate , see also this page . This was removed , however, when Java-8 was completed for release.
Of course, you can write a simple class that contains two state members of types LocalDate and ZoneId (but what is your use case ???). For XML, I prefer to choose LocalDate and ZonalOffset .
source share