Java Instant Calculate convertToUserTimeZone(Instant timeInSystem, ZoneId userZoneId)

Here you can find the source of convertToUserTimeZone(Instant timeInSystem, ZoneId userZoneId)

Description

convert To User Time Zone

License

Open Source License

Declaration

public static ZonedDateTime convertToUserTimeZone(Instant timeInSystem, ZoneId userZoneId) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.time.*;

public class Main {
    public static ZonedDateTime convertToUserTimeZone(Instant timeInSystem, ZoneId userZoneId) {
        return timeInSystem.atZone(userZoneId);
    }// w  w w  .  ja  v a 2 s  .c  om
}

Related

  1. convertInstantToDotNetTicks(Instant instant)
  2. dateOf(final Instant time)
  3. epochToInstant(long epochMilliSecond)
  4. getNquadsFile(final File dir, final Instant time)
  5. getPeriodInstant(LocalDate localDate)