[tools, clock] Add helpers for time zone and format

Also start using it in the clock module.