import sys, datetime print(sys.version) dt1 = datetime.datetime(2024,3,31,4,0,0,0) print(dt1.timestamp(), dt1) dt2 = datetime.datetime(2024,3,31,3,0,0,0) print(dt2.timestamp(), dt2)
Standard input is empty
3.9.5 (default, Nov 18 2021, 16:00:48) [GCC 10.3.0] 1711857600.0 2024-03-31 04:00:00 1711854000.0 2024-03-31 03:00:00