Hello, i suggest you take the train get off in powell Street station and know the area near union Square, if you like to walk go to fisherman wharf, but pay attention in time to don't lost your flight
I think possible 2hour for go and back in city . And pier 39 area 2 hour good enough
Thanks! Your answer is awaiting moderation.