Here you can find the source of getTime(TimeZone zone)
getTime (timezone):
get the time now
Parameter | Description |
---|---|
zone | time zone |
public static Calendar getTime(TimeZone zone)
//package com.java2s; //License from project: Open Source License import java.util.Calendar; import java.util.TimeZone; public class Main { /**/*from w ww .j a va 2 s . com*/ * <code>getTime (timezone):</code> get the time now * @param zone time zone * @return Calendar instance */ public static Calendar getTime(TimeZone zone) { return Calendar.getInstance(zone); } }