User:Mike Dillon/timezones

Hello, you have come here looking for the meaning of the word User:Mike Dillon/timezones. In DICTIOUS you will not only get to know all the dictionary meanings for the word User:Mike Dillon/timezones, but we will also tell you about its etymology, its characteristics and you will know how to say User:Mike Dillon/timezones in singular and plural. Everything you need to know about the word User:Mike Dillon/timezones you have here. The definition of the word User:Mike Dillon/timezones will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofUser:Mike Dillon/timezones, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

This list includes all of the long and short timezone names that are known by Java 1.6.0_03, generated with a Groovy script. Some of the country codes in the locales are arbitrary, but if the JDK had different data for the same language in a different locale, then this output would include it (so I think most of the output is not country-specific).

Code

#!/usr/bin/env groovy

def tzs = TimeZone.availableIDs.collect { TimeZone.getTimeZone(it) }

def locales = 
locales.addAll(Locale.getAvailableLocales().toList().sort { a, b ->
    def cmp = a.language <=> b.language
    if (cmp == 0) cmp = a.country <=> b.country
    if (cmp == 0) cmp = a.variant <=> b.variant
    return cmp
})

println "== Results =="
println ""

def allNames =  as Set
locales.eachWithIndex { locale, i ->
    def names =  as SortedSet
    tzs.each { tz ->
        .each { style ->
            names << tz.getDisplayName(false, style, locale)
            if (tz.useDaylightTime()) {
                names << tz.getDisplayName(true, style, locale)
            }
        }
    }

    names.removeAll(allNames)

    if (names) {
        if (i > 0) println ""

        println "=== ${locale.getDisplayName(Locale.ENGLISH)} ($locale) ==="
        println ""

        def mid = Math.ceil(names.size() / 2).toInteger()
        names.eachWithIndex { name, j ->
            if (j == 0) println "{{top2}}"
            if (j == mid) println "{{mid2}}"
            println "* ]"
            if (j == names.size() - 1) println "{{bottom}}"
        }

        allNames.addAll(names)
    }
}

Results

English (en)

German (de)

Spanish (es)

French (fr)

Hindi (India) (hi_IN)

Italian (it)

Japanese (ja)

Korean (ko)

Swedish (sv)

Chinese (China) (zh_CN)

Chinese (Hong Kong) (zh_HK)