简体   繁体   中英

handling BC dates in Ruby on Rails

I'm planning to make an application that needs to store dates way before 1970. Maybe even BC dates. Do you think I should store and handle that manually or can I use the Date/Time classes in Rails or use some plugin?

Thanks,

Tam

1970 won't present a problem, nor will BC.

>> Date.today - 3000.years
=> Mon, 27 Dec -0991

Is there something more specific that you're trying to do?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM