from datetime import datetime dt = datetime(2019, 7, 7, 18, 58, 32) print(dt.hour, dt.minute, dt.second)