<p>Working with dates in ruby and rails on windows, I'm having problems with pre-epoch dates (before 1970) throwing out of range exceptions. I tried using both <a href="http://ruby-doc.org/core-2.2.0/Time.html" rel="nofollow noreferrer"><code>Time</code></a> and <a href="http://ruby-doc.org/stdlib-1.9.3/libdoc/date/rdoc/DateTime.html" rel="nofollow noreferrer"><code>DateTime</code></a> objects, but still have the same problems.</p>

[{'answer_id': 28148, 'author': 'Mo.', 'author_id': 1870, 'author_profile': 'https://Stackoverflow.com/users/1870', 'pm_score': 2, 'selected': True, 'text': '<p>If you only need dates (no times), the <a href="http://ruby-doc.org/stdlib-2.2.3/libdoc/date/rdoc/Date.html" rel="nofollow noreferrer"><code>Date</code></a> class in ruby should handle dates before 1970. But it has only a resolution of days. I don\'t know if there are solutions, if you also need times before 1970\n<a href="http://safari.ibmpressbooks.com/0768667208/ch07lev1sec18" rel="nofollow noreferrer">(source)</a></p>\n'}, {'answer_id': 28218, 'author': 'Scott Gottreu', 'author_id': 2863, 'author_profile': 'https://Stackoverflow.com/users/2863', 'pm_score': 0, 'selected': False, 'text': '<p>You can also check out the section on dates on <a href="http://ruby-doc.org/stdlib/libdoc/date/rdoc/index.html" rel="nofollow noreferrer">ruby-doc.org</a>.  I\'m still learning Ruby but it sounds like you could use either the <a href="http://ruby-doc.org/stdlib/libdoc/date/rdoc/index.html" rel="nofollow noreferrer">Civil or Commerical Date</a> to go back before 1970.</p>\n'}, {'answer_id': 28517, 'author': 'John Duff', 'author_id': 3041, 'author_profile': 'https://Stackoverflow.com/users/3041', 'pm_score': 0, 'selected': False, 'text': '<p>Ended up using the <a href="http://ruby-doc.org/stdlib-2.2.3/libdoc/date/rdoc/Date.html" rel="nofollow noreferrer"><code>Date</code></a> class, problem then became making that work with the rails select helper - which didn\'t happen, just generated the html myself.</p>\n'}]
['https://Stackoverflow.com/questions/28011', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3041/']