工具 · 时间与格式
Unix 时间戳转换器
在 Unix 时间戳(秒与毫秒)与人类可读日历时间之间精准互转,实时计算时差与世界时区分布。
Global Timezone Breakdown
| Location | Offset | Formatted Date & Time |
|---|
Store Timestamp with Time Zone (TIMESTAMPTZ)
Never store dates in MySQL/Postgres as naive TIMESTAMP without explicit time zone
information or local offsets. Always persist timestamps in UTC (TIMESTAMPTZ) to avoid corrupted
temporal joins across geographic regions.
Audit Signed 32-bit Integer Columns
The Unix epoch overflows signed 32-bit integers on January 19, 2038 (03:14:07 UTC). Ensure all database columns, Kafka offsets, and serialization schemas allocate 64-bit integers (BIGINT / int64) for timestamps.
Enforce ISO 8601 in REST Payloads
Raw millisecond integers in JSON payloads are prone to 1000x multiplication bugs (seconds vs
milliseconds confusion). Standardize on strict RFC 3339 strings (e.g. 2026-10-30T06:00:00Z) on public API endpoints.