text: module.exports = function getSeason(date) {	
  	if (date === undefined) {
  		return 'Unable to determine the time of year!';
  	}
  
  	try {
  		let m = date.getTime();
  		}
  	catch (err) {
  		throw new Error('Дата некорректна');
  	}
  	
  	let month = date.getMonth();
  	let res = '';
  	switch (month) {
  		case 11:
  		case 0:
  		case 1:
  		   res = 'winter';
  		   break;
  		   
  		case 2:
  		case 3:
  		case 4:
  		   res = 'spring';
  		   break; 
  		   
  		case 5:
  		case 6:
  		case 7:
  		   res = 'summer';
  		   break; 
  
  		case 8:
  		case 9:
  		case 10:
  		   res = 'autumn';
  		   break; 
  	}
  	
  	return res;
  };
  