Created
          January 15, 2015 12:03 
        
      - 
      
- 
        Save dnmellen/50d593fb26d904017d16 to your computer and use it in GitHub Desktop. 
    Seconds to the next day in python
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | from datetime import datetime, timedelta | |
| print (datetime(*(datetime.now() + timedelta(days=1)).timetuple()[:3]) - datetime.now()).seconds | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Thanks for sharing this piece of code, you made my day!