add a helper function to determine if an event is an all day event

Add a helper function isAllDay()