# Core Date or no Date?

**URL:** <https://www.ruby-forum.com/t/core-date-or-no-date/147413>\
**Category:** Ruby\
**Created:** [September 1, 2008, 4:59pm UTC](https://www.ruby-forum.com/t/core-date-or-no-date/147413 "2008-09-01T16:59:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcsnide](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Post date:** [September 1, 2008, 4:59pm UTC](https://www.ruby-forum.com/t/core-date-or-no-date/147413/1 "2008-09-01T16:59:09Z")

</div>

Is there a core Date class or not?

$ irb

> > Date  
> > =\> Date
> 
> > Date.instance\_methods(false)  
> > =\> []
> 
> > Date.methods(false)  
> > =\> []
> 
> > Date.private\_instance\_methods(false)  
> > =\> []

Huh? And the only documentation I can find is on the ‘date.rb’  
standard library.

T.

P.S. Why can’t ri isolate core from everything else?

---

<div class="post-metadata">

**Author:** ![tcsnide](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Post date:** [September 1, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/core-date-or-no-date/147413/2 "2008-09-01T17:49:40Z")

</div>

On Sep 1, 2008, at 9:53 AM, Trans wrote:

> Is there a core Date class or not?

No.

> $ irb
> 
> > > Date  
> > > =\> Date

It’s not a good idea to use irb to answer these kinds of questions,  
since it loads a bunch of code:

$ ruby -ve ‘p Date’  
ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-darwin9.4.0]  
-e:1: uninitialized constant Date (NameError)

James Edward G. II
