add seconds to datetime python

Solutions on MaxInterview for add seconds to datetime python by the best coders in the world

showing results for - "add seconds to datetime python"
Giselle
30 Feb 2017
1from datetime import datetime, timedelta
2x = datetime.now() + timedelta(seconds=3)
3x += timedelta(seconds=3)