title: How to get the first and last second in python using datetime module
body: <p>How to get the first and last second in python using datetime module which means 00:00:01 and 23:59:59.</p>
  
  <p>I want to get the six datetime before today.</p>
  
  <p>So, for example:</p>
  
  <p>today 12/10, and I want to get </p>
  
  <p>12/9 00:00:01 and 23:59:59</p>
  
  <p>...</p>
  
  <p>12/4 00:00:01 and 23:59:59</p>
  
  <p>Thank you very much.</p>