def Convert2Days(time, units, calendar):
    """
		Convert an array of times with given units and calendar
		 into the same times but in units of days.
	"""
    import netCDF4 as nc
    import netcdftime as nct
    date = nc.num2date(time, units, calendar)
    unitArray = units.split()
    dayUnits = units.replace(unitArray[0], 'days')
    t = nct.utime(dayUnits, calendar=calendar)
    return t.date2num(date)
