simpler datetime format
This commit is contained in:
parent
2647022a7b
commit
b91d530f0b
1 changed files with 8 additions and 4 deletions
12
main.py
12
main.py
|
@ -27,16 +27,20 @@ CONFIG = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def format_datetime(dt):
|
def format_date(dt):
|
||||||
return dt.astimezone(eastern).isoformat()
|
dt = dt.astimezone(eastern)
|
||||||
|
return dt.strftime("%a %d").lower()
|
||||||
|
|
||||||
|
|
||||||
def format_time(dt):
|
def format_time(dt):
|
||||||
|
dt = dt.astimezone(eastern)
|
||||||
return dt.strftime("%I:%M%p").lower()
|
return dt.strftime("%I:%M%p").lower()
|
||||||
|
|
||||||
|
|
||||||
def format_date(dt):
|
def format_datetime(dt):
|
||||||
return dt.strftime("%a %d").lower()
|
dt = dt.astimezone(eastern)
|
||||||
|
return f"{format_date(dt)} {format_time(dt)}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def pollen_desc(index):
|
def pollen_desc(index):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue