Java TimeZone Get getCurrentCalendarInTimeZone(final TimeZone timeZone)

Here you can find the source of getCurrentCalendarInTimeZone(final TimeZone timeZone)

Description

Get current calendar in time zone

License

Apache License

Parameter

Parameter Description
timeZone the timezone

Return

the calendar

Declaration

public static Calendar getCurrentCalendarInTimeZone(final TimeZone timeZone) 

Method Source Code

//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);
    }
}

Related

  1. getAvailableTimezones()
  2. getCal(int dayOfMonth, int month, int year, int hours, int minutes, int seconds, String timezone)
  3. getCalendarForTimeZone(final String timeZone)
  4. getCalendarInstance(TimeZone timeZone, Locale locale)
  5. getConvertDateString(Date date, TimeZone tz, String fmt)
  6. getCurrentTimeZone()
  7. getCurrentTimezoneOffset()
  8. getDateInTimeZone(final Date date, final TimeZone timeZone)
  9. getDefaultTimeZoneOffset()