Factor out `dateFromUnixtime`