Tickets can be offered for resale up to 4 hours before the event takes place. Depending on the wishes of the promoter/artist, there may be exceptions (e.g. resale can be closed earlier).
When resale closes, all tickets still offered (not sold) are removed from the resale and returned to the seller's account.