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

Discussion in 'Ruby' started by me@benjaminarai.com, Jul 17, 2007.

  1. Guest

    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
     
    , Jul 17, 2007
    #1
    1. Advertising

  2. Jano Svitok Guest

    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.
     
    Jano Svitok, Jul 17, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Lozzi

    Null Dates are not 1/1/1900

    David Lozzi, May 18, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    16,153
    Kevin Spencer
    May 19, 2005
  2. David Lozzi

    Dates dates dates dates... SQL and ASP.NET

    David Lozzi, Sep 29, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    892
    Rob Schieber
    Sep 30, 2005
  3. Gelmir Tinehtelë
    Replies:
    10
    Views:
    703
    Aidan
    Jun 9, 2004
  4. Kevin Howe

    dates earlier than 1970?

    Kevin Howe, Nov 3, 2004, in forum: Ruby
    Replies:
    2
    Views:
    131
    Yukihiro Matsumoto
    Nov 3, 2004
  5. Tyler Cruz

    Time with Epoch earlier than 1970 question

    Tyler Cruz, Feb 8, 2004, in forum: Perl Misc
    Replies:
    4
    Views:
    133
    Gregory Toomey
    Feb 8, 2004
Loading...

Share This Page