Initial checkin of util class for mucking with calendars.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1273 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
eric
2003-10-22 00:58:47 +00:00
parent 5f2bdfd8e0
commit 22b71d34b9
@@ -0,0 +1,23 @@
//
// $Id: CalendarUtil.java,v 1.1 2003/10/22 00:58:47 eric Exp $
package com.samskivert.util;
import java.util.Calendar;
/**
* Contains some useful calendar related functions.
*/
public class CalendarUtil
{
/**
* Set all the time components of the passed in calendar to zero.
*/
public static void zeroTime (Calendar cal)
{
cal.clear(Calendar.HOUR);
cal.clear(Calendar.MINUTE);
cal.clear(Calendar.SECOND);
cal.clear(Calendar.MILLISECOND);
}
}