In Java, LocalDateTime.ofInstant(instant, zone) shows a moment in time (an Instant) as the wall-clock date and time of a ZoneId.
The Instant is the same everywhere in the world, but the clock on the wall depends on the zone. This method applies the zone rules, including daylight saving, and then drops the zone from the result.
A static method of java.time.LocalDateTime (since Java 8): call it on the class, as LocalDateTime.ofInstant(), with no object needed. Add import java.time.LocalDateTime; at the top of your file.
Syntax
Pass the moment and the zone.
Java
Instant moment = Instant.parse("2026-03-15T10:30:00Z");
LocalDateTime india = LocalDateTime.ofInstant(moment, ZoneId.of("Asia/Kolkata")); // 2026-03-15T16:00
LocalDateTime tokyo = LocalDateTime.ofInstant(moment, ZoneId.of("Asia/Tokyo")); // 2026-03-15T19:30
Call
What it does
ofInstant(instant, zone)
The wall-clock date and time of zone at that moment.
instant.atZone(zone)
The same, but as a ZonedDateTime that keeps the zone.
dt.toInstant(offset)
The reverse: a date-time plus an offset gives an Instant.
LocalDateTime.now(zone)
The current moment in a zone.
ofInstant() is the right tool when you have a stored timestamp and want to display it in a user's zone.
Library declarations
Java
// java.time.LocalDateTime
public static LocalDateTime ofInstant(Instant instant, ZoneId zone)
Parameters
Parameter
Description
instant (Instant)
The moment in time to convert.
zone (ZoneId)
The zone whose clock to read, such as ZoneId.of("Asia/Tokyo") or ZoneOffset.UTC.
Return Value
Return Value
Description
LocalDateTime
The date and time shown by a clock in that zone at that moment.