2021-07-09から1日間の記事一覧
開発環境は、Windows 10 Pro(64bit) + Python 3.7.6。 先月の末日を取得する import datetime today = datetime.date.today() # 当月の1日 thismonth = datetime.datetime(today.year, today.month, 1) # 先月の末日 lastmonth = thismonth + datetime.timed…
開発環境は、Windows 10 Pro(64bit) + Python 3.7.6。 先月の末日を取得する import datetime today = datetime.date.today() # 当月の1日 thismonth = datetime.datetime(today.year, today.month, 1) # 先月の末日 lastmonth = thismonth + datetime.timed…