Hi and welcome to Just Answer!Yes - you may negotiate who will own assets after separation or divorce. That includes taking your name off the deed and transferring the deed to your spouse only.
See for reference - http://www.irs.gov/pub/irs-pdf/p504.pdf page 18Generally, there is no recognized gain or loss on the transfer of property between spouses, or between former spouses if the transfer is because of a divorce.and - page 19
Generally, no gain or loss is recognized on a transfer of property from you to (or in trust for the benefit of):Your spouse, orYour former spouse, but only if the transfer is incident to your divorce.This rule applies even if the transfer was in exchange for cash, the release of marital rights, the assumption of liabilities, or other consideration.
As we see - there is NO limit for the time of being married.