# Re: DateTime is not a Date?

**URL:** <https://www.ruby-forum.com/t/re-datetime-is-not-a-date/76546>\
**Category:** Ruby\
**Created:** [November 20, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/re-datetime-is-not-a-date/76546 "2006-11-20T14:46:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [November 20, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/re-datetime-is-not-a-date/76546/1 "2006-11-20T14:46:02Z")

</div>

In a message dated 11/19/2006 4:16:52 P.M. US Mountain Standard Time,  
removed\_email\_address@domain.invalid writes:

So, I was playing around a little in Ruby and noticed that |DateTime|  
is  
a subclass of |Date|, yet the method |today| is not defined for it.

I can certainly see how it doesn’t make sense to have that method for  
that class, but I’m wondering why a Date isn’t a DateTime? I suppose  
then we’d be removing the time element, so we’d get the same problem…  
but it was just striking is all.

Time.now gives date and time.
