Java tutorial
//package com.java2s; import java.util.Calendar; import java.util.TimeZone; public class Main { public static final String UTC_TIME_ZONE_ID = "UTC"; /** Gets current time in UTC. */ public static Calendar getCurrentCalendarTimeUtc() { Calendar currentTime = Calendar.getInstance(TimeZone.getTimeZone(UTC_TIME_ZONE_ID)); return currentTime; } }