Probably several years after agriculture was invented, albeit inadvertently. Planting crops in the same area means that you're going to get inbreeding. After several generations, your plants will have self-selected to be what grows best in your field.
A cultivar belonging to a particular area that was formed in this way is called a "land race."
http://en.wikipedia.org/wiki/Landrace