Here you can find the source of getUTCCalendar()
public static Calendar getUTCCalendar()
//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; } }