>>> dir(time)
['CLOCK_MONOTONIC', 'CLOCK_MONOTONIC_RAW', 'CLOCK_PROCESS_CPUTIME_ID', 'CLOCK_REALTIME', 'CLOCK_THREAD_CPUTIME_ID', '_STRUCT_TM_ITEMS', '__doc__', '__loader__', '__name__', '__package__', '__spec__', 'altzone', 'asctime', 'clock', 'clock_getres', 'clock_gettime', 'clock_settime', 'ctime', 'daylight', 'get_clock_info', 'gmtime', 'localtime', 'mktime', 'monotonic', 'perf_counter', 'process_time', 'sleep', 'strftime', 'strptime', 'struct_time', 'time', 'timezone', 'tzname', 'tzset']
>>>
>>>
>>> time.localtime()
time.struct_time(tm_year=2018, tm_mon=12, tm_mday=6, tm_hour=15, tm_min=10, tm_sec=33, tm_wday=3, tm_yday=340, tm_isdst=0)
>>>
>>>
>>> t = time.localtime()
>>>
>>> "{}-{}-{}".format(t.tm_year,t.tm_mon,t.tm_mday)
'2018-12-6'
>>>