Here you can find the source of getCurrentCalendarInTimeZone(final TimeZone timeZone)
Parameter | Description |
---|---|
timeZone | the timezone |
public static Calendar getCurrentCalendarInTimeZone(final TimeZone timeZone)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { /**//from w w w. ja v a 2s .c om * Get current calendar in time zone * * @param timeZone the timezone * @return the calendar */ public static Calendar getCurrentCalendarInTimeZone(final TimeZone timeZone) { return Calendar.getInstance(timeZone); } }