in reply to Reverse of localtime?

use Time::Local and timelocal will be your friend.