update for Jenkins API change

The Jenkins API no longer supports `int()` so we have to extrace the
timestamp value manually.  Since it is a little more complex I also
pulled it into its own function.