title: using Carbon to know if a time falls between two points of time or not
body: <p>I am using Laravel. I have just come across <code>Carbon</code> which was already there in vendors folder. I did some quick search and found that it is a great extension from PHP Date time.</p>
  
  <p>Somewhere in my application, I needed a logic that will check if a given time falls between two points of time. Lets say, I want to check if 10:00 falls under the time time 9:55 and 10:05. Surely, it falls but how should I use that logic with the help of Carbon. </p>
  
  <p>By default <code>Carbon::now()</code> will return date and time in <code>2014-12-02 14:37:18</code> format. I was thinking if I could extract the time part only i.e <code>14:37:18</code> then I can compare two times to know whether the time under testing falls under the two points of time or not.</p>
  
  <p>If i directly check two Carbon objects, it will try to check the year as well. But all I need is just the time part only. </p>
  
  <p>And as a matter of fact, I am not even sure If the times (h:m:s) can directly can be compared or not through carbon.</p>