Java Calendar Time getCurrentTimeZoneCalendar(String timeZone)

Here you can find the source of getCurrentTimeZoneCalendar(String timeZone)

Description

Gets the current time zone calendar.

License

Open Source License

Parameter

Parameter Description
timeZone the time zone

Return

the current time zone calendar

Declaration

public static Calendar getCurrentTimeZoneCalendar(String timeZone) 

Method Source Code

//package com.java2s;
/*// w ww  .j  ava2 s  . c  o  m
 * DateUtil.java
 * Copyright (c) 2014, EcoFactor, All Rights Reserved.
 *
 * This software is the confidential and proprietary information of EcoFactor
 * ("Confidential Information"). You shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement you entered into with
 * EcoFactor.
 */

import java.util.Calendar;

import java.util.TimeZone;

public class Main {
    /**
     * Gets the current time zone calendar.
     * @param timeZone the time zone
     * @return the current time zone calendar
     */
    public static Calendar getCurrentTimeZoneCalendar(String timeZone) {

        Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone(timeZone));
        return calendar;
    }
}

Related

  1. getCalendarWithoutTimeZone(Date date)
  2. getClientCurrentDate(final Calendar calendar, final TimeZone timeZone)
  3. getCurrentTimeDecimal(Calendar cal)
  4. getCurrentTimeIfCalendareIsNull(Calendar testDate)
  5. getCurrentTimeLongType(Calendar cal)
  6. getDateTimeByDate(Date date, int calendarType, int qty)
  7. getFullTimeToString(Calendar argCal)
  8. getLocalTime(Calendar calendar)
  9. getMaxTimeCalendar(Calendar source)