from datetime import datetime, timedelta
# 當前日期和時間信息
current_date = datetime(year=2024, month=5, day=31, hour=19, minute=21, second=57, microsecond=836)
# 法國時間信息
french_open = datetime(year=2024, month=5, day=31, hour=12, minute=0, second=0, microsecond=836)
# 計算兩個時間的差值
time_difference = french_open - current_date
hours, remainder = divmod(time_difference.total_seconds(), 3600)
minutes, seconds = divmod(remainder, 60)
(hours, minutes, seconds)
從現(xiàn)在(2024年5月31號,北京時間19點21分57秒)起,法國時間已經(jīng)為晚上。
本文內(nèi)容根據(jù)網(wǎng)絡(luò)資料整理,出于傳遞更多信息之目的,不代表金鑰匙跨境贊同其觀點和立場。
轉(zhuǎn)載請注明,如有侵權(quán),聯(lián)系刪除。