ZonedDateTime ofInstant() method in Java with Examples
In ZonedDateTime class, there are two types of ofInstant() method depending upon the parameters passed to it. ofInstant(Instant instant, ZoneId zone) ofInstant() method of an ZonedDateTime class used to create an instance of ZonedDateTime from an Instant and zoneId passed as parameter to this method