def convertSecondsToDHMS(seconds):
	"""
	Converts seconds into days, hours, minutes, seconds
	"""
	
	if seconds >= 0 and seconds < 1:
		seconds = round(seconds, 2)
		return str(seconds)
		
	else:
		seconds  = int(round(seconds))
		
		minutes, seconds = divmod(seconds, 60)
		hours, minutes = divmod(minutes, 60)
		days, hours = divmod(hours, 24)
		
		formatStr = "{0} day{1}, {2} hour{3}, {4} minute{5}, {6} second{7}"
		output = formatStr.format( \
			  days,    "" if days==1 else "s", \
			  hours,   "" if hours==1 else "s", \
			  minutes, "" if minutes==1 else "s", \
			  seconds, "" if seconds==1 else "s")
			  
		return output