Like a actual full-on book and not just a short story or article? If so, how long did it take and what was your process in writing it? What about any other tips or advice you have about it getting published?
Two years to write. Three years to edit. One year from submission to print. Get a good query letter. Research what agents suit your book. Learn how to pitch in writing and verbally. Be confident not arrogant. Expect the worst and assume the best.