Support the 1.5 release of 'time'.

Fixes #2100.