org.jasig.portlet.calendar.util
Class AllDayUtil

java.lang.Object
  extended by org.jasig.portlet.calendar.util.AllDayUtil

public class AllDayUtil
extends Object

AllDayUtil determines whether a particular event should be classified as an "all-day" event in the user's time zone. This implementation classifies an all-day event as starting at 12:00:00 AM in the user's time zone, ends at 12:00:00 AM, and lasts approximately one day.

Version:
$Revision: 24437 $
Author:
Jen Bourey, jbourey@unicon.net

Constructor Summary
AllDayUtil()
           
 
Method Summary
static boolean isAllDayEvent(Date startDate, Date endDate, TimeZone timezone)
          Determine if a given event is an "all-day" event in the specified time zone.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllDayUtil

public AllDayUtil()
Method Detail

isAllDayEvent

public static boolean isAllDayEvent(Date startDate,
                                    Date endDate,
                                    TimeZone timezone)
Determine if a given event is an "all-day" event in the specified time zone.

Parameters:
event -
timezone -
Returns:
true for all-day events, false otherwise


Copyright © 2012 Jasig. All Rights Reserved.