在C#中,我有以下代码:
new DateTime(long.parse('636670368000000000')) => 13.07.2018
参考:https://docs.microsoft.com/en-us/dotnet/api/system.datetime.-ctor?view=netframework-4.7.2#System_DateTime__ctor_System_Int64_
现在,我尝试在Python中解析相同的时间戳记:
datetime.datetime.fromtimestamp(636670368000000000) => Value too large for defined data type
当我尝试时:
datetime.datetime.fromtimestamp(63667036800) => datetime.datetime(3987, 7, 13, 0, 0)
它返回错误的日期时间。 我应该如何解析此时间戳的正确性?谢谢