Java TimeZone to String toString(TimeZone timezone)

Here you can find the source of toString(TimeZone timezone)

Description

return the string format of the Timezone

License

LGPL

Parameter

Parameter Description
timezone a parameter

Declaration

public static String toString(TimeZone timezone) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.util.TimeZone;

public class Main {
    /**/*from  www  .  java2  s  .  c o m*/
     * return the string format of the Timezone
     * @param timezone
     * @return
     */
    public static String toString(TimeZone timezone) {
        return timezone.getID();
    }
}

Related

  1. toString(TimeZone tz)