EnigmaticLion
Joined 10 years ago
Karma
14
Submissions
11
Member since
Jul 18
Joined 10 years ago
irb(main):001:0> include ActionView::Helpers::DateHelper
=> Object
irb(main):002:0> distance_of_time_in_words(Date.new(2025, 2, 28), Date.new(2024, 2, 29))
=> "almost 1 year"
irb(main):003:0> distance_of_time_in_words(Date.new(2025, 3, 1), Date.new(2024, 2, 29))
=> "about 1 year"
irb(main):004:0> distance_of_time_in_words(Date.new(2025, 2, 28), Date.new(2024, 2, 28))
=> "about 1 year"Did they publish the images? I'm sure many astronomers would be happy to examine them.
Your post makes it look so easy, but it would surely take weeks for me to figure out all these things.
I don't think this is a correct implementation of "endsWith".
"testtest".indexOf("st") =/= "testtest".length - "st".length