Demo entry 6644272

datewala

   

Submitted by anonymous on Oct 02, 2017 at 14:38
Language: Python 3. Code size: 518 Bytes.

def link_date():

	year = 2016
	links = []
	for month in range(1, 13):
		for day in range(1, 30):
			if(month != 2):
				if month < 10 and day < 10:
					links.append("/"+str(year) + "/0" + str(month) + "/0" + str(day) + "/")
				elif month < 10:
					links.append("/"+str(year) + "/0" + str(month) + "/" + str(day) + "/")
				elif day < 10:
					links.append("/"+str(year) + "/" + str(month) + "/0" + str(day) + "/")
				else:
					links.append("/"+str(year) + "/" + str(month) + "/" + str(day) + "/") 
	return links

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).