How is 59.5 defined? Is it by the time withdraw or the end of the tax year?

I'll be 59 on 1/18/2013, 59.8 on 12/2013. Can I withdraw 401K on Feb 2013 without getting penalty?