Implement Time.switchTimezone.

Closes #1276.