Java ZoneId determineTimeZoneId(String zoneId)

Here you can find the source of determineTimeZoneId(String zoneId)

Description

determine Time Zone Id

License

Open Source License

Declaration

public static ZoneId determineTimeZoneId(String zoneId) 

Method Source Code

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

import java.time.ZoneId;

public class Main {
    public static ZoneId determineTimeZoneId(String zoneId) {
        try {/*  w w  w .j  a  v  a2  s .c  o  m*/
            return ZoneId.of(zoneId);
        } catch (Exception e) {//NOSONAR
            return ZoneId.systemDefault();
        }
    }
}

Related

  1. fromEpochMilliseconds(final Long fromEpoch)
  2. getDefaultTimeZone()
  3. getDefaultZoneId()
  4. getDefaultZoneId()