CRM_DEV_ASSERT(a_date->weeks < weeks);
CRM_DEV_ASSERT(a_date->weeks <= weeks);
is_date_sane(ha_time_t *a_date){	int ydays = 0;	int mdays = 0;	int weeks = 0;	CRM_DEV_ASSERT(a_date != NULL);		ydays = is_leap_year(a_date->years)?366:365;	mdays = days_per_month(a_date->months, a_date->years);	weeks = weeks_in_year(a_date->weekyears);	crm_debug_5("max ydays: %d, max mdays: %d, max weeks: %d",		    ydays, mdays, weeks);		CRM_DEV_ASSERT(a_date->has->years);	CRM_DEV_ASSERT(a_date->has->weekyears);	CRM_DEV_ASSERT(a_date->has->months);	CRM_DEV_ASSERT(a_date->months > 0);	CRM_DEV_ASSERT(a_date->months < 13);	CRM_DEV_ASSERT(a_date->has->weeks);	CRM_DEV_ASSERT(a_date->weeks > 0);	CRM_DEV_ASSERT(a_date->weeks < weeks);	CRM_DEV_ASSERT(a_date->has->days);	CRM_DEV_ASSERT(a_date->days > 0);	CRM_DEV_ASSERT(a_date->days <= mdays);	CRM_DEV_ASSERT(a_date->has->weekdays);	CRM_DEV_ASSERT(a_date->weekdays > 0);	CRM_DEV_ASSERT(a_date->weekdays < 8);	CRM_DEV_ASSERT(a_date->has->yeardays);	CRM_DEV_ASSERT(a_date->yeardays > 0);	CRM_DEV_ASSERT(a_date->yeardays <= ydays);	CRM_DEV_ASSERT(a_date->hours >= 0);	CRM_DEV_ASSERT(a_date->hours < 24);	CRM_DEV_ASSERT(a_date->minutes >= 0);	CRM_DEV_ASSERT(a_date->minutes < 60);		CRM_DEV_ASSERT(a_date->seconds >= 0);	CRM_DEV_ASSERT(a_date->seconds < 60);		return TRUE;}