5 lines
234 B
Python
5 lines
234 B
Python
|
from page_shares import MONTHS, WEEKDAYS
|
||
|
|
||
|
def stringify_date(date) -> str:
|
||
|
return f"{WEEKDAYS[date.tm_wday][:3]}, {date.tm_mday} {MONTHS[date.tm_mon][:3]} {date.tm_year} {date.tm_hour:02d}:{date.tm_min:02d}:{date.tm_sec:02d} GMT"
|