add seconds to datetime python

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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)