fork download
  1. import sys, datetime
  2.  
  3. print(sys.version)
  4.  
  5. dt1 = datetime.datetime(2024,3,31,4,0,0,0)
  6. print(dt1.timestamp(), dt1)
  7.  
  8. dt2 = datetime.datetime(2024,3,31,3,0,0,0)
  9. print(dt2.timestamp(), dt2)
Success #stdin #stdout 0.03s 10136KB
stdin
Standard input is empty
stdout
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