- java.time - Discussion
- java.time - Month
- java.time - ZoneOffset
- java.time - ZoneId
- java.time - ZonedDateTime
- java.time - YearMonth
- java.time - Year
- java.time - Period
- java.time - OffsetTime
- java.time - OffsetDateTime
- java.time - MonthDay
- java.time - LocalTime
- java.time - LocalDateTime
- java.time - LocalDate
- java.time - Instant
- java.time - Duration
- java.time - Clock
- java.time - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
java.time.ZoneId Class
Introduction
The java.time.ZoneId class represents a time-zone ID, such as Europe/Paris.
Class declaration
Following is the declaration for java.time.ZoneId class −
pubpc abstract class ZoneId extends Object implements Seriapzable
Field
Following are the fields for Java.time.ZoneId class −
static Map<String,String> SHORT_IDS − A map of zone overrides to enable the short time-zone names to be used.
Class methods
Sr.No. | Method & Description |
---|---|
1 | Checks if this time-zone ID is equal to another time-zone ID. |
2 | Obtains an instance of ZoneId from a temporal object. |
3 | Gets the set of available zone IDs. |
4 | Gets the textual representation of the zone, such as British Time or +02:00 . |
5 | Gets the unique time-zone ID. |
6 | Gets the time-zone rules for this ID allowing calculations to be performed. |
7 | A hash code for this time-zone ID. |
8 | Normapzes the time-zone ID, returning a ZoneOffset where possible. |
9 | Obtains an instance of ZoneId from an ID ensuring that the ID is vapd and available for use. |
10 | Obtains an instance of ZoneId using its ID using a map of apases to supplement the standard zone IDs. |
11 | Obtains an instance of ZoneId wrapping an offset. |
12 | Gets the system default time-zone. |
13 | Outputs this zone as a String, using the ID. |
Methods inherited
This class inherits methods from the following classes −
Java.lang.Object