Skip to content

Instantly share code, notes, and snippets.

@funasoul
Created September 13, 2017 07:45
Show Gist options
  • Save funasoul/ca986c56a2f030370f9cd1a970f9ab8d to your computer and use it in GitHub Desktop.
Save funasoul/ca986c56a2f030370f9cd1a970f9ab8d to your computer and use it in GitHub Desktop.
import datetime
today = datetime.date.today()
friday = today + datetime.timedelta( (4-today.weekday()) % 7)
for i in range(20):
s = friday.strftime(u'%Y年X%m月X%d日'.encode('utf-8')).decode('utf-8').replace('X0','X').replace('X','')
print s
friday = friday + datetime.timedelta(7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment