Here you can find the source of normalizedClone(final Calendar cal)
public static Calendar normalizedClone(final Calendar cal)
//package com.java2s; /*/*from w w w .ja v a 2s. c o m*/ * Copyright 2011 - 2012 * All rights reserved. License and terms according to LICENSE.txt file. * The LICENSE.txt file and this header must be included or referenced * in each piece of code derived from this project. */ import java.util.*; public class Main { /** * Clones and normalizes a calendar. */ public static Calendar normalizedClone(final Calendar cal) { final Calendar cl = (Calendar) cal.clone(); normalize(cl); return cl; } /** * Normalizes a date to be comparable with another date, * fixed at 12 hours, 0 seconds, 0 minutes of the day GMT+0. */ public static void normalize(final Calendar cal) { cal.set(Calendar.HOUR_OF_DAY, 12); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); cal.setTimeZone(TimeZone.getTimeZone("GMT+0")); } }