开发者

handling BC dates in Ruby on Rails

开发者 https://www.devze.com 2022-12-14 03:54 出处:网络
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 ma开发者_开发百科nually or can I use the Date/Time clas

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 ma开发者_开发百科nually 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?

0

精彩评论

暂无评论...
验证码 换一张
取 消