Right idea with the unix timestamps. But Jenkins uses milliseconds for the unit, and not seconds. So you need to knock off the last few zeros which can be easily done by dividing by 1000. Then date should be happier.
date