lib/currency_spy/scrapers/nbp.rb
def rate_time
      regexp = Regexp.new(/\d\d\d\d-\d\d-\d\d/)
      page.search('//p[@class="nag"]').each do |p|
        p.search('b').each do |b|
          if regexp.match(b.content)
            return DateTime.strptime(b.content, "%Y-%m-%d")
          end
        end
      end
    end
def rate_time
      regexp = Regexp.new(/\d\d\d\d-\d\d-\d\d/)
      page.search('//p[@class="nag"]').each do |p|
        p.search('b').each do |b|
          if regexp.match(b.content)
            return DateTime.strptime(b.content, "%Y-%m-%d")
          end
        end
      end
    end
Get the time for this rate (based on the information on the website)