Historic (and prehistoric) dates in Ruby [closed]

In Ruby, is there a standard class or gem to work with dates that can be – but are not required to be – historical in nature? The dates have precision (to the nearest million years, decade, century, year, month, second, etc). For example:

  • 20th century
  • 2000’s
  • 5th century, BCE
  • 1920’s
  • June, 1945
  • 4.6 million years ago
  • 1988-07-11 06:45:08

1

I didn’t manage to find anything that met my needs, so created the CarbonDate Ruby gem.

  • https://rubygems.org/gems/carbon_date
  • https://github.com/bradleymarques/carbon_date

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *