1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-26 09:48:11 +00:00

[skip travis] alternative approach to datetime

This commit is contained in:
Unknown 2020-09-23 04:43:02 +02:00
parent 14a9299f50
commit ce02551b85

View file

@ -18,7 +18,9 @@ old_rev = ''
if len(_OLD_VERSION) > 1: if len(_OLD_VERSION) > 1:
old_rev = _OLD_VERSION[1] old_rev = _OLD_VERSION[1]
ver = f'{datetime.today():%Y.%m.%d}' now = datetime.now()
# ver = f'{datetime.today():%Y.%m.%d}'
ver = now.strftime("%Y.%m.%d")
rev = '' rev = ''
if old_ver == ver: if old_ver == ver: