Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
import numpy as np
|
@@ -47,12 +48,12 @@ def asubmit(aparam):
|
|
47 |
os.environ['TZ'] = 'Asia/Hong Kong'
|
48 |
time.tzset()
|
49 |
anow = time.localtime()
|
50 |
-
ayear = int(
|
51 |
-
amonth = int(
|
52 |
-
amonthday = int(
|
53 |
-
a24hour = int(
|
54 |
-
aminute = int(
|
55 |
-
asecond = int(
|
56 |
acontainer4.write(("%s-%s-%s %s:%s:%s").format(ayear,amonth,amonthday,a24hour,aminute,asecond))
|
57 |
os.environ['TZ'] = atimezone
|
58 |
time.tzset()
|
|
|
1 |
+
|
2 |
import streamlit as st
|
3 |
import pandas as pd
|
4 |
import numpy as np
|
|
|
48 |
os.environ['TZ'] = 'Asia/Hong Kong'
|
49 |
time.tzset()
|
50 |
anow = time.localtime()
|
51 |
+
ayear = int(time.strftime("%Y",anow))-0
|
52 |
+
amonth = int(time.strftime("%m",anow))
|
53 |
+
amonthday = int(time.strftime("%d",anow))
|
54 |
+
a24hour = int(time.strftime("%H",anow))
|
55 |
+
aminute = int(time.strftime("%M",anow))
|
56 |
+
asecond = int(time.strftime("%S",anow))
|
57 |
acontainer4.write(("%s-%s-%s %s:%s:%s").format(ayear,amonth,amonthday,a24hour,aminute,asecond))
|
58 |
os.environ['TZ'] = atimezone
|
59 |
time.tzset()
|