import datetimex = datetime.datetime.now()print(x)print(x.year)print(x.month)print(x.hour)print(x.minute)print(x.second)
Standard input is empty
2026-09-14 15:24:50.936596 2026 9 15 24 50
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!