Пример #1
0
def sql_datetime_to_human_date_current_year_test():
	current_year = datetime.now().year
	human = sql_datetime_to_human_date('%s-01-01 10:30:15' % current_year)
	assert(human == 'Jan 01')
Пример #2
0
def sql_datetime_to_human_date_test():
	human = sql_datetime_to_human_date('2009-01-01 10:30:15')
	assert(human == 'Jan 01, 2009')