def python_to_matlab_timestamp(python_timestamp):
matlab_start_date = datetime.datetime(1899, 12, 30)
python_datetime = datetime.datetime.fromtimestamp(python_timestamp)
delta = python_datetime - matlab_start_date
matlab_timestamp = delta.days + (delta.seconds + delta.microseconds / 10 ** 6) / 86400
return matlab_timestamp + 693960
Matlab-Python Python时间戳转换为Matlab
于 2023-11-01 23:36:16 首次发布