Frappe抛出ValueError:时间戳超出平台time_t的范围

时间:2018-03-08 06:21:12

标签: python-3.x python-2.7 frappe

for i in data:
        End_Date = i.end_date
        a = int(End_Date)/1000.0

        b = a - 2629743.0
        DateTimeStamp=int(time.time()) 
        if b >= DateTimeStamp:
            mes = "Good to GO" 
        else:
            mes = "Academic year yet to complete"
        Edate = str(datetime.fromtimestamp(int(End_Date)/1000.0).strftime('%d-%m-%Y'))

错误行: - Edate = str(datetime.fromtimestamp(int(End_Date)/1000.0).strftime('%d-%m-%Y'))

ValueError:时间戳超出平台time_t的范围

我无法解决此问题。 我尝试使用

Edate = time.strftime('%m/%d/%Y',  time.gmtime(int(End_Date)/1000.0))

但仍然显示相同的错误

0 个答案:

没有答案