时间 · 文本 · CSS
时间戳转换
双向转换 Unix 时间戳和日期字符串,并提供相对时间与多时区视图。
完全在浏览器中运行 — 粘贴的内容不会被上传。
秒、毫秒、ISO 或任意日期字符串
识别为seconds—
10 位数字按秒读取,13 位数字按毫秒读取,因此从日志粘贴任一形式都无需转换。
可直接复制的格式
Unix 秒
1794787200
Unix 毫秒
1794787200000
ISO 8601 (UTC)
2026-11-16T00:00:00.000Z
RFC 2822
Mon, 16 Nov 2026 00:00:00 GMT
SQL DATETIME (UTC)
2026-11-16 00:00:00
时区同一瞬间,不同挂钟
UTC
—
本地
—
Asia/Seoul
—
America/New_York
—
Unix 时间戳参考
快速参考- 1970-01-01T00:00:00Z
- Unix 纪元;所有时间戳都从这个 UTC 时刻起算。
- 10 位与 13 位
- 秒和毫秒。13 位数值是毫秒,需要除以 1000。
- 2038-01-19T03:14:07Z
- 32 位有符号整数上限,对 int 字段和嵌入式系统仍然相关。
- ISO 8601
- 带 Z 或偏移的 2026-11-16T05:00:00Z 格式,是 API 和日志中最安全的形式。
- SQL DATETIME
- 不带时区的 YYYY-MM-DD HH:MM:SS,因此按服务器时区解释。
- RFC 2822
- Mon, 16 Nov 2026 05:00:00 +0000 格式,用于电子邮件头。
SQL 相关语法指南
全部 SQL 指南SQL
Postgres RLS 42P17: infinite recursion detected in policy
A policy on members that reads members re-enters itself. One security definer function with a pinned search_path ends the recursion and leaves the rest of the policy intact.
SQLPgBouncer Transaction vs Session Pooling: What Breaks
Port 6543 hands out a server connection per transaction, so prepared statements, SET, LISTEN and cursors stop behaving. Driver-level settings for each stack.
SQLZero-Downtime Postgres Migrations: lock_timeout and NOT VALID
One ALTER TABLE waiting behind a slow SELECT blocks every query that arrives after it. The timeout-retry loop, NOT VALID constraints and CONCURRENTLY index rules.
SQLPostgres JSONB Indexing: GIN vs Expression B-Tree
GIN answers containment, not equality, and an expression B-tree is the reverse. Choose by operator, match the expression exactly, and prove it with EXPLAIN.