Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Need to use dates earlier than 1900 (Time library says out of range for dates < 1900)

Reply
Thread Tools

Need to use dates earlier than 1900 (Time library says out of range for dates < 1900)

 
 
me@benjaminarai.com
Guest
Posts: n/a
 
      07-17-2007
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

 
Reply With Quote
 
 
 
 
Jano Svitok
Guest
Posts: n/a
 
      07-17-2007
On 7/17/07, <> 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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dates dates dates dates... SQL and ASP.NET David Lozzi ASP .Net 1 09-30-2005 02:18 PM
Program opens (task manager says so), but no browser appears V1.06 and earlier Jim Firefox 4 08-13-2005 09:07 PM
dates earlier than 1970? Kevin Howe Ruby 2 11-03-2004 07:47 PM
Dell says no & Acronis says maybe sysprep utility ( Re: Anyone use Acronis Drive Image 7.0? Bobby Fischler Computer Support 0 07-24-2004 12:12 AM
I have a soltek SL-75DRV5 with a amd 1900 xp.When trying to bootthe system reports it can't find any ide devices and using the win 98 startdiskette it says cd drivers not installed as no device was detected.It'sa brand new hard drive in that's why I al Computer Support 7 01-11-2004 03:04 PM



Advertisments