Java Calendar UTC getUTCCalendar()

Here you can find the source of getUTCCalendar()

Description

Gets the UTC calendar.

License

Open Source License

Return

the UTC calendar

Declaration

public static Calendar getUTCCalendar() 

Method Source Code

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

import java.util.Calendar;

import java.util.TimeZone;

public class Main {
    /** The Constant UTC_TIME_ZONE. */
    public final static TimeZone UTC_TIME_ZONE = TimeZone.getTimeZone("UTC");

    /**/*from  ww w  . j a v  a 2 s . c  o m*/
     * Gets the UTC calendar.
     *
     * @return the UTC calendar
     */
    public static Calendar getUTCCalendar() {
        Calendar cal = Calendar.getInstance();
        cal.setTimeZone(UTC_TIME_ZONE);
        return cal;
    }
}

Related

  1. getLocalCalendarFromUTC(Calendar utc)
  2. getUTCCalendar()
  3. getUtcCalendar()
  4. getUTCCalendar()
  5. getUtcCalendar()
  6. getUTCCalendar()
  7. getUTCCalendar(Date date)
  8. getUTCCalendarFromLocalDate(Date date)
  9. getUTCCalendarInstance()