Add Date.fromTime function, based on PR #357