Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -291,23 +291,23 @@ def run():
|
|
291 |
return out, im_html
|
292 |
def get_date(year1,month1,day1,hour1,minute1,year2,month2,day2,hour2,minute2):
|
293 |
if len(str(month1))<2: m1=0
|
294 |
-
else: m1=
|
295 |
if len(str(day1))<2: d1=0
|
296 |
-
else: d1=
|
297 |
if len(str(hour1))<2: h1=0
|
298 |
-
else: h1=
|
299 |
if len(str(minute1))<2: mi1=0
|
300 |
-
else: mi1=
|
301 |
date1=f'{year1}{m1}{month1}{d1}{day1}{h1}{hour1}{mi1}{minute1}'
|
302 |
|
303 |
if len(str(month2))<2: m2=0
|
304 |
-
else: m2=
|
305 |
if len(str(day2))<2: d2=0
|
306 |
-
else: d2=
|
307 |
if len(str(hour2))<2: h2=0
|
308 |
-
else: h2=
|
309 |
if len(str(minute2))<2: mi2=0
|
310 |
-
else: mi2=
|
311 |
date2=f'{year2}{m2}{month2}{d2}{day2}{h2}{hour2}{mi2}{minute2}'
|
312 |
print(date1)
|
313 |
print(date2)
|
|
|
291 |
return out, im_html
|
292 |
def get_date(year1,month1,day1,hour1,minute1,year2,month2,day2,hour2,minute2):
|
293 |
if len(str(month1))<2: m1=0
|
294 |
+
else: m1=""
|
295 |
if len(str(day1))<2: d1=0
|
296 |
+
else: d1=""
|
297 |
if len(str(hour1))<2: h1=0
|
298 |
+
else: h1=""
|
299 |
if len(str(minute1))<2: mi1=0
|
300 |
+
else: mi1=""
|
301 |
date1=f'{year1}{m1}{month1}{d1}{day1}{h1}{hour1}{mi1}{minute1}'
|
302 |
|
303 |
if len(str(month2))<2: m2=0
|
304 |
+
else: m2=""
|
305 |
if len(str(day2))<2: d2=0
|
306 |
+
else: d2=""
|
307 |
if len(str(hour2))<2: h2=0
|
308 |
+
else: h2=""
|
309 |
if len(str(minute2))<2: mi2=0
|
310 |
+
else: mi2=""
|
311 |
date2=f'{year2}{m2}{month2}{d2}{day2}{h2}{hour2}{mi2}{minute2}'
|
312 |
print(date1)
|
313 |
print(date2)
|