Java TimeZone Get getMoscowCalendar()

Here you can find the source of getMoscowCalendar()

Description

get Moscow Calendar

License

Open Source License

Declaration

public static Calendar getMoscowCalendar() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.*;

public class Main {
    public static Calendar getMoscowCalendar() {
        return new GregorianCalendar(getMoscowTimeZone());
    }/*from  w w  w  . ja v a 2s. c o  m*/

    public static Calendar getMoscowCalendar(Date time) {
        Calendar c = getMoscowCalendar();
        c.setTime(time);
        return c;
    }

    public static TimeZone getMoscowTimeZone() {
        return java.util.TimeZone.getTimeZone("Europe/Moscow");
    }
}

Related

  1. getJapanTimeZone()
  2. getMediumDisplayDate(Date moment, TimeZone tz, Locale inLocale)
  3. getMicrosoftTimeZoneName(TimeZone timeZone)
  4. getMilitaryTimeZoneCharacter(TimeZone tz)
  5. getMillis(TimeZone tz, int year, int month, int day, int hour, int minute, int second, int millis)
  6. getMoscowTimeZone()
  7. getNextHour(final String timezone)
  8. getPossibleUserTimezoneList(int userOffsetInHours)
  9. getRawOffset(String timeZoneStr)