# Need to use dates earlier than 1900 (Time library says out o

**URL:** <https://www.ruby-forum.com/t/need-to-use-dates-earlier-than-1900-time-library-says-out-o/109654>\
**Category:** Ruby\
**Created:** [July 17, 2007, 4:17pm UTC](https://www.ruby-forum.com/t/need-to-use-dates-earlier-than-1900-time-library-says-out-o/109654 "2007-07-17T16:17:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bunny](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3d9bf3/32.png) [@bunny](https://www.ruby-forum.com/u/bunny)\
**Post date:** [July 17, 2007, 4:17pm UTC](https://www.ruby-forum.com/t/need-to-use-dates-earlier-than-1900-time-library-says-out-o/109654/1 "2007-07-17T16:17:27Z")

</div>

Hi,

I am currently using the calendar\_grid library, which uses the Time  
library. My issue is that need to generate calendar grids before 1900  
but the Time library does not support any dates before then. Is there  
anything I can do to extend or shift the date range supported by the  
Time library so that I can create calendars in the 1800’s? Thanks in  
advance.

Benjamin

---

<div class="post-metadata">

**Author:** ![bunny](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3d9bf3/32.png) [@bunny](https://www.ruby-forum.com/u/bunny)\
**Post date:** [July 17, 2007, 4:29pm UTC](https://www.ruby-forum.com/t/need-to-use-dates-earlier-than-1900-time-library-says-out-o/109654/2 "2007-07-17T16:29:29Z")

</div>

On 7/17/07, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,
> 
> I am currently using the calendar\_grid library, which uses the Time  
> library. My issue is that need to generate calendar grids before 1900  
> but the Time library does not support any dates before then. Is there  
> anything I can do to extend or shift the date range supported by the  
> Time library so that I can create calendars in the 1800’s? Thanks in  
> advance.
> 
> Benjamin

Hi,

have a look at Date class, if you need dates only, or DateTime if you  
need times.  
Date supports dates from 4700 BC, however it is much slower than Time.

J.
