# End\_of\_month()

**URL:** <https://www.ruby-forum.com/t/end-of-month/97853>\
**Category:** Rails\
**Created:** [January 26, 2006, 11:48pm UTC](https://www.ruby-forum.com/t/end-of-month/97853 "2006-01-26T23:48:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sfwalter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/278dde/32.png) [@sfwalter](https://www.ruby-forum.com/u/sfwalter)\
**Post date:** [January 26, 2006, 11:48pm UTC](https://www.ruby-forum.com/t/end-of-month/97853/1 "2006-01-26T23:48:15Z")

</div>

I noticed that  
ActiveSupport::CoreExtensions::Time::Calculations::ClassMethods.end\_of\_month()  
returns a new Time with the time set to 00:00:00. I expected it to  
return  
23:59:59.

Am I missing something? Should this be changed?

Scott

---

<div class="post-metadata">

**Author:** ![sfwalter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/278dde/32.png) [@sfwalter](https://www.ruby-forum.com/u/sfwalter)\
**Post date:** [April 30, 2009, 5:40pm UTC](https://www.ruby-forum.com/t/end-of-month/97853/2 "2009-04-30T17:40:48Z")

</div>

I have also noticed this, and it is driving me up the wall. Any way  
around it?
