Here you can find the source of normalize(final Calendar cal)
public static void normalize(final Calendar cal)
//package com.java2s; /*//from w w w. j ava2s. c om * 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 { /** * 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")); } }