You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
328 B
10 lines
328 B
3 weeks ago
|
import datetime
|
||
|
|
||
|
def get_firday():
|
||
|
today = datetime.datetime.strptime(datetime.datetime.strftime(datetime.date.today(), '%Y-%m-%d') + ' 20:00:00', '%Y-%m-%d %H:%M:%S')
|
||
|
print(today)
|
||
|
friday = today + datetime.timedelta( days=(4-today.weekday())%7)
|
||
|
return friday
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
print(get_firday())
|