diff --git a/stoptime.rb b/stoptime.rb index b9f1b99..ad72525 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -427,6 +427,10 @@ module StopTime::Models ((self.end - self.start) / 1.hour).round(2) end + def in_current_month? + self.end.month == Time.now.month + end + ######### protected