You could learn almost any punk song just from playing guitar for a day or less, since it's only chords. Depends on the band, genre, and song most of all. If you just want to be able to play simple stuff, you could probably do it in a few weeks. If you want to play with the big boys, probably a few years.