Here you can find the source of toTimeZone(String zone)
Parameter | Description |
---|---|
zone | zone ID |
public static TimeZone toTimeZone(String zone)
//package com.java2s; //License from project: Apache License import java.util.TimeZone; public class Main { /**/*from w w w. j a v a 2 s . c o m*/ * Lookup timezone by ID. * * @param zone zone ID * @return timezone */ public static TimeZone toTimeZone(String zone) { if (zone == null) { return null; } return TimeZone.getTimeZone(zone); } }