import time


def date_to_path(date=None):
	""" Get a path with year/month/day/hour """
	year,month,day,hour,minute,second,weekday,yearday = time.localtime(date)[:8]
	return b"%04d/%02d/%02d/%02dh%02d"%(year,month,day,hour,minute)