from datetime import datetime, timedelta timezone_offset =float('2.0')now = datetime.now() - timedelta(hours=timezone_offset) print(now)
Standard input is empty
2024-04-17 13:03:10.122657
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!