get Empty Calendar Greenwich - Java java.util

Java examples for java.util:Calendar

Description

get Empty Calendar Greenwich

Demo Code


//package com.java2s;
import java.util.Calendar;
import java.util.TimeZone;

public class Main {
    public static void main(String[] argv) throws Exception {
        System.out.println(getEmptyCalendarGreenwich());
    }//w ww .  ja  v  a 2s.  com

    public static Calendar getEmptyCalendarGreenwich() {
        Calendar calendar = Calendar.getInstance(TimeZone
                .getTimeZone("Etc/Greenwich"));
        calendar.clear();
        return calendar;
    }
}

Related Tutorials