■公式の解説ページ
Python公式の"Supported operations"に代入演算子(Overload operator)が書かれていませんので、恐らくできないものと思います。
参考)エラーの再現
Python
1# -*- coding: utf-8 -*-
2import time
3import datetime
4
5time_now = time.time()
6print("time.time(): %s"% time_now )
7
8time_now = time.time()+10
9print("time.time()+10: %s"% time_now )
10
11time_now +=10
12print("time_now+=10: %s"% time_now )
13
14time_now +=datetime.timedelta(hours=1)
15# TypeError: unsupported operand type(s) for +=: 'float' and 'datetime.timedelta'
16print("time_now +=datetime.timedelta(hours=1): %s"% time_now )
■代替手段
日付の加算 減算
If you need just the seconds...
clock arithmetic
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。