def format_to_db_value(value):
     return "\"" + support.create_date_str(value) + "\""
Пример #2
0
 def generate_json(cls, value):
     return "\"" + support.create_date_str(value) + "\""
 def generate_json(cls, value):
     return "\"" + support.create_date_str(value) + "\""
Пример #4
0
def test_create_date_str():
    d = datetime.date(year=2014, month=10, day=17)
    run_tests.compare_answer(support.create_date_str(d), "2014-10-17", "")
Пример #5
0
 def format_to_db_value(value):
     return "\"" + support.create_date_str(value) + "\""