title: (PostgreSql) Calculate Time Slots based on Given Start Date,End Date and Interval in minutes
body: <p>I have a query in which i need to use TimeSlots (in minutes).</p>
  
  <p>Say input is </p>
  
  <pre><code>Start Date : 01-08-2012 00:00:00,
  End Date : 02-08-2012 00:00:00,
  Interval : 5 Minutes
  </code></pre>
  
  <p>Output should be </p>
  
  <pre><code>2012-08-01 00:00:00.0
  2012-08-01 00:05:00.0
  2012-08-01 00:10:00.0
  2012-08-01 00:15:00.0
  .
  .
  </code></pre>
  
  <p>(Kindly Ignore Date Format as I have figured a way out for that)
  There is no table for reference from where i can take a base timestamp and do floor(), etc.</p>
  
  <p>I think we can use now() function from PostgreSQL library but i am not able to find <strong>"how?"</strong>  till now.</p>
  
  <p>Thanks in advance.</p>