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

M

me

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
 
J

Jano Svitok

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top