Article

Tests

BeginPackage["Wikicode`Gemstone`"]

Production::usage="Production[date] gives the annual world gemstone production from the specified date."

Begin["`Private`"]

Production[from_Integer]:=Select[gemstoneData["Production"],DateDifference[{from},#[[1]]] >= 0&]

gemstoneData["Production"] = 
 MapAt[{Round@#} &, #, 1] & /@ 
  Import["http://minerals.usgs.gov/ds/2005/140/ds140-gemst.xlsx"][[1, 
   61 ;; 117, {1, 8}]]

End[]
EndPackage[]