tztr (Rust)
Timezone Translator — convert timestamps between timezones. Reads from stdin or a file, auto-detects timestamp formats, and preserves the original format by default.
This is the Rust implementation. It is a port of the Ruby reference implementation and is kept functionally identical — same detection, format preservation, aliases, and DST handling (both read the system tz database).
Install
# or, via Homebrew:
Usage
|
# 2026-04-03T05:00:00-07:00
|
# 11:30 EDT
# Structured output for scripts/agents:
|
|
# Report detected format/zone without converting:
|
# Reference date so time-only inputs resolve DST correctly:
|
Run tztr -h for all options.
Library
use translate;
let out = translate;
assert_eq!;