lib/darian_calendar.rb
# Returns true if the given martian year is a leap year
# @param year [Integer] martian year
# @return [Boolean] true if the given year is a leap year
Returns true if the given martian year is a leap year
Returns true if the given martian year is a leap year
def is_mars_leap_year?(year)
      return false if year.nil?
      return true if (year % 500) == 0
      return false if (year % 100) == 0
      return true if (year %  10) == 0
      return false if (year % 2) == 0
      return true
    end
def is_mars_leap_year? ( year ) return false if year . nil? return true if ( year % 500 ) == 0 return false if ( year % 100 ) == 0 return true if ( year % 10 ) == 0 return false if ( year % 2 ) == 0 return true end
Returns true if the given martian year is a leap year
Returns true if the given martian year is a leap year
true if the given year is a leap year
true if the given year is a leap year
Boolean
year
None