Java Calendar UTC getUTCCalendar(Date date)

Here you can find the source of getUTCCalendar(Date date)

Description

get UTC Calendar

License

Open Source License

Declaration

public static Calendar getUTCCalendar(Date date) 

Method Source Code

//package com.java2s;
/*/*from   w w  w.j  a  va2  s . c o m*/
Copyright (c) Microsoft Open Technologies, Inc.
All Rights Reserved
See License.txt in the project root for license information.
*/

import java.util.Calendar;
import java.util.Date;

import java.util.Locale;

import java.util.TimeZone;

public class Main {
    public static Calendar getUTCCalendar(Date date) {
        Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("utc"), Locale.getDefault());
        cal.setTime(date);

        return cal;
    }
}

Related

  1. getUtcCalendar()
  2. getUTCCalendar()
  3. getUtcCalendar()
  4. getUTCCalendar()
  5. getUTCCalendar()
  6. getUTCCalendarFromLocalDate(Date date)
  7. getUTCCalendarInstance()
  8. getUtcMillisFromEpoch(Calendar calendar)
  9. subtractFromUTCMilliSeconds(int calendarTime, int actualValue)