/** * Copyright 2013 JogAmp Community. All rights reserved. * * This software is licensed under the GNU General Public License (GPL) Version 3. * * The views and conclusions contained in the software and documentation are those of the * authors and should not be interpreted as representing official policies, either expressed * or implied, of JogAmp Community. */ package org.jogamp.jabot.util; import java.util.Calendar; import java.util.TimeZone; public class TimeTool { public static String UTC_TZ = "UTC"; public static String[] ZERO_TZs = { UTC_TZ, "GMT", "GMT0", "Zulu" }; /** Returns closest to Zulu/UTC TimeZone w/ shortest ID */ public static TimeZone getNearZuluTimeZone() { TimeZone tz = null; // Get preferred .. for(int i=0; null == tz && i 0 ) { int min_len = Integer.MAX_VALUE; int min_idx = -1; for(int i=0; i